testing why grammar does not work
This commit is contained in:
17
grammar.y
17
grammar.y
@ -8,9 +8,9 @@
|
||||
extern int yylex(void);
|
||||
void yyerror(const char *err);
|
||||
%}
|
||||
/*
|
||||
|
||||
%token ID 101
|
||||
%token T_INTEGER 201
|
||||
%token T_INTEGER
|
||||
%token T_ADDRESS 202
|
||||
%token T_BOOLEAN 203
|
||||
%token T_CHARACTER 204
|
||||
@ -54,10 +54,19 @@
|
||||
%token DOT 612
|
||||
%token RESERVE 613
|
||||
%token RELEASE 614
|
||||
%token COMMENT 700 */
|
||||
%token COMMENT 700
|
||||
%%
|
||||
|
||||
start: /*empty for now*/
|
||||
input: /*empty for now*/
|
||||
OPTIONAL;
|
||||
|
||||
OPTIONAL_OPTIONAL:
|
||||
OPTIONAL
|
||||
| OPTIONAL_OPTIONAL OPTIONAL {printf("expansion\n");};
|
||||
|
||||
OPTIONAL:
|
||||
'[' {printf("success");}
|
||||
|%empty
|
||||
;
|
||||
// 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
|
||||
|
Reference in New Issue
Block a user