syntax fix
This commit is contained in:
parent
6876de5ca8
commit
23cdcd5613
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue