Permalink
Browse files

Part 5

* Fix shift/reduce conflict
  • Loading branch information...
halogenandtoast committed Dec 8, 2014
1 parent 4a4ce7e commit f5c10a16250336d8d3bd473464c79098b435a5be
Showing with 6 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +3 −2 Makefile
  3. +2 −0 parse.y
@@ -3,3 +3,4 @@ lex.yy.c
ruby
parse.tab.c
parse.tab.h
parse.output
@@ -1,4 +1,5 @@
SRC=main.c parse.tab.c lex.yy.c
all: ruby
ruby: ${SRC}
@@ -8,7 +9,7 @@ lex.yy.c: ruby.l
flex ruby.l
parse.tab.c: parse.y
bison -d parse.y
bison -v -d parse.y
clean:
rm -rf ruby lex.yy.c parse.tab.c parse.tab.h
rm -rf ruby lex.yy.c parse.tab.c parse.tab.h parse.output
@@ -4,6 +4,8 @@
void yyerror(char const *s) { fprintf(stderr, "%s\n", s); }
%}
%left tPLUS
%token tNUMBER
%token tPLUS
%start program

0 comments on commit f5c10a1

Please sign in to comment.