Go to file
parrt dc82edad02 Summary: we can have lexer commands like -> skip now.
moved model.actions package to chunk
type(foo) didn't match.
ATNBuilder.g now tracks the outer alternative number and calls new factory commands on the lexer commands.
Removed unnecessary resolveWithPredicate field from ATNConfig
Added lexerActionIndex field to ATNConfig since we need to track whether we passed an action in an alternative will rule in the lexer.
Renamed ruleIndex in DFAState and added the lexer action index so that we can execute lexer actions from the DFA.
added functions to the grammar tree visitor for the lexer commands.
Added templates for the lexer commands.
Augmented the lexer ATN factory so that it constructs plain old actions from the lexer commands it finds. That way, the code generator doesn't know any different and generates an action.
Augmented the lexer ATN simulator so that it fires a proper action index now. previously it only used the rule index, which of course doesn't work when you have more than one action in a rule.
rm'd dup code from OutputModelController
altered the epsilon edge removal optimization so that it could not remove actions in lexer rules.
Added list of valid lexer commands in Rule.

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9877]
2012-01-21 15:01:05 -08:00
gunit udo fixes 2011-11-01 06:37:35 -08:00
runtime/Java Summary: we can have lexer commands like -> skip now. 2012-01-21 15:01:05 -08:00
tool Summary: we can have lexer commands like -> skip now. 2012-01-21 15:01:05 -08:00
CHANGES.txt reuse of -> label on multiple alts in rule caused dup ctx object defs. 2012-01-14 13:12:35 -08:00
LICENSE.txt add initial antlr4 files (mainly runtime) 2011-06-14 16:22:05 -08:00
build.properties add 2012-01-01 10:35:31 -08:00
build.xml include ST v4 2012-01-02 17:11:39 -08:00