got it to workgit add grammar.ygit add grammar.ygit add grammar.ygit add grammar.ygit add grammar.ygit add grammar.ygit add grammar.y! t#34
This commit is contained in:
@ -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()){
|
||||
|
Reference in New Issue
Block a user