syntax fix

This commit is contained in:
Pedro 2014-10-20 22:34:34 +02:00
parent 6876de5ca8
commit 23cdcd5613
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
%syntax_error { printf("Lemon syntax error\n"); }
%extra_argument { Statement** result }
%tokentype {const char*}
%token_type {const char*}
%type expr {Statement*}
%left PLUS MINUS .
@ -21,4 +21,4 @@ prog ::= .
print ::= expr(a) . { *result = a; }
expr(a) ::= NUMBER . { a = new Statement(eSelect); }
expr(a) ::= expr(b) PLUS expr . { a = b; }
expr(a) ::= expr(b) PLUS expr . { a = b; }