Terence Parr
|
0cfe3b4206
|
tweak to leave code for printing DFA DOT
|
2012-08-01 14:36:19 -07:00 |
Terence Parr
|
ac4f00524e
|
add ctx cache.
|
2012-07-24 14:19:43 -07:00 |
Terence Parr
|
b255509e96
|
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-07 17:31:18 -07:00 |
parrt
|
73793898a9
|
update grammars
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9856]
|
2012-01-11 11:21:05 -08:00 |
parrt
|
63168c5577
|
added more dbg prints, turned on context sensitivity in test java lr.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9545]
|
2011-12-07 17:47:08 -08:00 |
parrt
|
5dfc4aed1d
|
add on-the-fly listeners; augment enter/exit rule, consume(). playground/U.g and MyUListener.java are test. added human-readable toInfoString to ParserRuleContext such as
RuleParserRuleContext[s, a]{altNum=0, start=[@0,0:0='a',<6>,1:0], stop=null, st=null}
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9453]
|
2011-11-25 10:38:36 -08:00 |
parrt
|
6b4e9905fb
|
rename member, tweak output. new chk for inf loop from error sync works
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9088]
|
2011-09-30 20:40:14 -08:00 |
parrt
|
9c5f636bea
|
labels work with tree parsers now.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9072]
|
2011-09-22 17:32:25 -08:00 |
parrt
|
b63b271815
|
got basic tree parser working.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9071]
|
2011-09-22 17:16:22 -08:00 |