Lexical Analyzer: Concept and explanation of the C program. See
Lex Practice
Count program
Save above program as Count.l
Execute as bellow
Lex Practice
Count program
Save above program as Count.l
Execute as bellow
- lex Count.l // This will create a C file lex.yy.c
- gcc lex.yy.c -ly -ll //compile it to create a.out in the current directory
- ./a.out
// Execute it. name of any text file in current directory
Code Generation:
No comments:
Post a Comment