abhi16180 / lex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LEX and YACC programs for SS Tutorial

Fork repo and create pull request to contribute

LEX Compilation:

  1. Allow execute privileges to "compile" file.
  2. Navigate to directory containing lex program.
  3. On Linux: ../compile.sh fileName.l
  4. On Windows: ..\compile.bat fileName.l

YACC Compilation:

  1. Navigate to directory containing lex and yacc programs
  2. Execute these commands (replace proper file name)
    flex lexfile.l
    bison -yd yaccfile.y
    gcc lex.yy.c y.tab.c
    .\a.exe

About


Languages

Language:Lex 69.9%Language:Yacc 20.6%Language:C 5.2%Language:HTML 3.4%Language:Shell 0.5%Language:Batchfile 0.3%