Thompson Construction In Compiler Design