rule name change

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9880]
This commit is contained in:
parrt 2012-01-21 15:16:00 -08:00
parent 9ae5049d44
commit 4632d7f493
1 changed files with 6 additions and 6 deletions

View File

@ -568,7 +568,7 @@ lexerAltList
lexerAlt
: lexerElements
( lexerActions -> ^(LEXER_ALT_ACTION<AltAST> lexerElements lexerActions)
( lexerCommands -> ^(LEXER_ALT_ACTION<AltAST> lexerElements lexerCommands)
| -> lexerElements
)
;
@ -638,16 +638,16 @@ lexerBlock
;
// channel=HIDDEN, skip, more, mode(INSIDE), push(INSIDE), pop
lexerActions
: RARROW lexerAction (COMMA lexerAction)* -> lexerAction+
lexerCommands
: RARROW lexerCommand (COMMA lexerCommand)* -> lexerCommand+
;
lexerAction
: id LPAREN lexerActionExpr RPAREN -> ^(LEXER_ACTION_CALL id lexerActionExpr)
lexerCommand
: id LPAREN lexerCommandExpr RPAREN -> ^(LEXER_ACTION_CALL id lexerCommandExpr)
| id
;
lexerActionExpr
lexerCommandExpr
: id
| INT
;