Generate code with correct channel identifiers when `HIDDEN` or `DEFAULT_TOKEN_CHANNEL` is used in the `channel` lexer command

This commit is contained in:
Sam Harwell 2013-09-15 13:09:46 -05:00
parent bb6f6fc026
commit a16bd6067c
1 changed files with 7 additions and 1 deletions

View File

@ -717,7 +717,7 @@ LexerMoreCommand() ::= "More();"
LexerPopModeCommand() ::= "PopMode();"
LexerTypeCommand(arg) ::= "_type = <arg>;"
LexerChannelCommand(arg) ::= "_channel = <arg>;"
LexerChannelCommand(arg) ::= "_channel = <channelName.(arg)>;"
LexerModeCommand(arg) ::= "_mode = <modeName.(arg)>;"
LexerPushModeCommand(arg) ::= "PushMode(<modeName.(arg)>);"
@ -978,6 +978,12 @@ modeName ::= [
default : key
]
channelName ::= [
"HIDDEN" : "Hidden",
"DEFAULT_TOKEN_CHANNEL" : "DefaultTokenChannel",
default : key
]
csIdentifier ::= [
"abstract" : "@abstract",
"as" : "@as",