Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 336 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 336 Bytes

Compiler-Design-Lex-Yacc

Lex Programs

  1. Compile the file as :

    lex filename.l gcc lex.yy.c -ll

  2. Execute the file as :

    ./a.out argumentFile.txt

Yacc Programs

  1. Compile the file as :

lex filename.l yacc -d filename.y gcc y.tab.c lex.yy.c

  1. Execute the file as :

./a.out

Thanks, thevirtualbuddy