Fix inconsistency in elementOption syntax in tree grammars

This commit is contained in:
Sam Harwell 2012-12-05 14:07:04 -06:00
parent 3946c05eec
commit ee8344703b
3 changed files with 4 additions and 0 deletions

View File

@ -194,4 +194,5 @@ elementOption
| ^(ASSIGN ID ID)
| ^(ASSIGN ID STRING_LITERAL)
| ^(ASSIGN ID ACTION)
| ^(ASSIGN ID INT)
;

View File

@ -989,4 +989,5 @@ elementOption[GrammarASTWithOptions t]
| ^(ASSIGN id=ID v=ID) {elementOption(t, $id, $v);}
| ^(ASSIGN ID v=STRING_LITERAL) {elementOption(t, $ID, $v);}
| ^(ASSIGN ID v=ACTION) {elementOption(t, $ID, $v);}
| ^(ASSIGN ID v=INT) {elementOption(t, $ID, $v);}
;

View File

@ -177,6 +177,8 @@ elementOption
: ID
| ^(ASSIGN ID ID)
| ^(ASSIGN ID STRING_LITERAL)
| ^(ASSIGN ID ACTION)
| ^(ASSIGN ID INT)
;
element