diff --git a/grammar.y b/grammar.y index 2015769..0ce008e 100644 --- a/grammar.y +++ b/grammar.y @@ -63,7 +63,7 @@ input: /*empty for now*/ OPTIONAL; OPTIONAL: - '[' {printf("success");}; + L_BRACKET {printf("success");}; // B : '{'{CreateScope(cur,line,column)} E '}'; //Braced Expressions can have braces removed to get regular expressions // D : '[' l ']'; //Declaration Lists Brackets can be taken out to get a list of Declarations // E : Maybe_D U; //An expression can start with an optional D followed by an undeclared segment @@ -76,7 +76,7 @@ OPTIONAL: void yyerror(const char *err) { fprintf(stderr, "Error: %s\n", err); -} +} int main() { int a; while (a = yyparse()){