Use separate actions to get actions on line by themselves.

This commit is contained in:
Terence Parr 2015-06-22 10:58:17 -07:00
parent 162c6138a5
commit 0330cee319
1 changed files with 1 additions and 1 deletions

View File

@ -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;} ;
>>