forked from jasder/antlr
Use separate actions to get actions on line by themselves.
This commit is contained in:
parent
162c6138a5
commit
0330cee319
|
@ -28,5 +28,5 @@ WS : (' '|'\n') -> skip ;
|
|||
|
||||
slaveGrammar(grammarName) ::= <<
|
||||
parser grammar S;
|
||||
a[int x] returns [int y] : B {<write("\"S.a\"")> $y=1000;} ;
|
||||
a[int x] returns [int y] : B {<write("\"S.a\"")>} {$y=1000;} ;
|
||||
>>
|
||||
|
|
Loading…
Reference in New Issue