This website requires JavaScript.
Explore
Help
Sign In
forgetest1
/
antlr
forked from
jasder/antlr
Watch
1
Star
0
Fork
You've already forked antlr
0
Code
Issues
Pull Requests
1
Releases
Wiki
Activity
16ace4b429
antlr
/
tool
/
playground
/
U.g
6 lines
62 B
Plaintext
Raw
Normal View
History
Unescape
Escape
tweak to leave code for printing DFA DOT
2012-08-02 05:36:19 +08:00
grammar U;
fix a bug related to semantic predicates in the lexer and generally cleaned up variable and method names in the simulator. I moved all of the predicates to the right side of lexer rules in the unit tests. Later, we should ensure that predicates only occur on the right edge of lexer rules. We should state that the rule is not been accepted so we can't test things like getText(), we have to use more raw indexes into the character stream. In the lexer simulator, the addDFAState() method now does not try to compute whether there is a predicate in the configurations. That information has already been set into the ATNConfigSet by the getEpsilonTarget() method. [I should also point out that I have not tested the Java parsing in a while and now it hits a landmine on a number of common Java files in jdk :(. I'm not sure where that crept in]
2012-06-08 08:31:18 +08:00
tweak to leave code for printing DFA DOT
2012-08-02 05:36:19 +08:00
a : X ;
add ctx cache.
2012-07-25 05:19:43 +08:00
X : 'a' -> skip ;
Y : 'z' -> skip, more ;