Skip to content

Commit

Permalink
lexer and parser
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglundong committed Nov 6, 2012
1 parent 2399cd1 commit aedc192
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
Jinglun Dong

##Dependency:
Lexer using flex
Parser using bison
+ Lexer using flex
+ Parser using bison

##How to compile:
$flex lexer.l
$bison -d parser.y
$gcc lex.yy.c parser.tab.c -o parser.out
+ $flex lexer.l
+ $bison -d parser.y
+ $gcc lex.yy.c parser.tab.c -o parser.out

##How to run:
$./parser.out < inputStream
OR:
$./parser.out inputFile.txt
+ $./parser.out < inputStream
+ OR:
+ $./parser.out inputFile.txt

##Output:
stdout for rules and symbo table goes to rule.out and symtable.out
stderr for rules and symbo table goes to rule.err and symtable.err
+ stdout for rules and symbo table goes to rule.out and symtable.out
+ stderr for rules and symbo table goes to rule.err and symtable.err

0 comments on commit aedc192

Please sign in to comment.