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
|
52396d8f5f
|
removed method call
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9762]
|
2011-12-27 16:31:09 -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
|
01a71c5b02
|
fixing a lot of little thingsTo make my examples work
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9410]
|
2011-11-19 17:27:19 -08:00 |
parrt
|
3bbcfa5d25
|
change name of method
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9144]
|
2011-10-11 16:16:29 -08:00 |
parrt
|
e8a2a738cf
|
rename TreeNodeStream
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9075]
|
2011-09-24 09:33:04 -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 |
parrt
|
da7e7c8813
|
clean up tree output, rename _ctx to context
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9058]
|
2011-09-08 12:12:51 -08:00 |
parrt
|
328444244f
|
backing out changes; tried 2 stacks; too complicated
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8969]
|
2011-07-31 10:38:48 -08:00 |
parrt
|
2ebedba421
|
debugging
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8933]
|
2011-07-29 15:45:31 -08:00 |
parrt
|
b90b073450
|
getting more unit tests in
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8924]
|
2011-07-29 14:05:19 -08:00 |
parrt
|
4b5cd3a9ba
|
We're forced to exec args, even if dependent on _localctx. If no actual context to use, create dummy context to use for arg eval only.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8922]
|
2011-07-29 11:45:27 -08:00 |