Quote:
Originally Posted by sahana
do i have to store the TC and this parser generator software in same folder?
|
No, you don't need to keep the TC and lex tool in the same folder.
Basically, while writing lex programs, you specify tokens and the action to be performed when that token is found.
When you compile your lex program (like the one given above), it will generate a .c file that contain c code for the specified task.
Now, you have to take that c file and need to compile with TC or any other compiler (i will suggest gcc) and you gets the executable which when executed performs the task.
-Pradeep