antlr/tool/playground
Terence Parr 3e5a976599 playground stuff 2012-11-18 09:57:05 -08:00
..
A-input first wack at fixing nongreedy (ACTION | .)* for recursive rules. 2012-09-27 11:44:51 -07:00
A.g4 clean playground 2012-11-03 08:53:26 -07:00
A2.g4 push 2012-09-25 16:39:08 -07:00
Bar.java add ctx cache to merge op. now i get optimal graph it seems. doesn't seem longer for java.* with JavaLR. still landmine in Pattern.java, Foo.java. Made toDOTString sort predctx nodes by id for repeatable tests. updated unit tests. 2012-07-24 16:26:01 -07:00
CSV.g4 got unbufferedchar working I think. 2012-09-30 12:37:35 -07:00
E.g fixed bug in [a-z] 2012-01-30 18:08:22 -08:00
ExtractInheritance.java foo 2012-11-03 08:47:32 -07:00
Foo.java still has dfa and local predict ctx cache, but doesn't help much, and takes time. Eval preds as we pass them in full ctx mode; no sempred ctx in configs then. removed LANDMINE!!!!!!!!! some lame code that uses fields like _startIndex; fix that. added bail option to testjavalr. 18s to parse java.* with javalr full ctx now. 2012-07-25 18:47:34 -07:00
GenHierarchy.java foo 2012-11-03 08:47:32 -07:00
HTMLParser.g got ambig pred thing working i think; unit tests. missing validating pred thing. 2011-11-28 19:16:45 -08:00
JavaLR.g4 playground tweaks 2012-11-17 16:27:10 -08:00
JavaLexer.g fix playground 2012-09-29 17:02:33 -07:00
JavaParser.g removed all template / AST rewrite stuff; massive change; added -encoding tool option 2012-01-02 18:13:16 -08:00
JavaParser.orig.g add more 2011-06-14 16:29:02 -08:00
L.g simplified delete configs algorithm. 2012-09-29 12:48:20 -07:00
R.g4 clean playground 2012-11-03 08:53:26 -07:00
R.g4.graffle Major update to v4. I backed out a change I made on Christmas then mistakenly prevented any lexer DFA creation. Per http://www.antlr.org/wiki/display/~admin/2011/12/29/Flaw+in+ANTLR+v3+LL%28*%29+analysis+algorithm I fixed a major flaw in ANTLR's notion of context. To do that, I needed to create a new LoopEndState, with all of its fanout to the serialization and parser ATN construction. got a very good start on ParserATNPathFinder, which uses basic recursion to find all possible paths and return a tree with the possibilities. I left it in the condition where he would sometimes loop forever; it needs to track sets of configurations in the busy set; it using states at the moment. added a new signal from the interpreter: reportAttemptingFullContext. I fixed a bug where configuration sets derived from a configuration that had reachesIntoOuterContext>0 were not being considered as dipping into the outer context. The ambiguity checker needed to switch so that a check for exact matches not suffixes when doing full context. It's faster at the very least for full context. added some more support routines to DFA. Added TraceTree in support of the new ParserATNPathFinder. 2011-12-29 17:04:40 -08:00
Scannerless.g add 2011-08-04 08:56:08 -08:00
T-input got ambiguity reporting set right I think. fixed unit tests to force exact ambig detection. 2012-10-14 18:42:43 -07:00
T.g playground stuff 2012-11-18 09:57:05 -08:00
TestA.java recursive rule bug in lexer; the lexer ATN simulator was not checking for empty stack at rule stop states. 2012-09-23 18:04:46 -07:00
TestCSV.java * Fixed the unbuffered streams, which actually buffered everything 2012-09-30 16:45:30 -07:00
TestE.java Added visitor gen mechanism, runtime support 2012-02-16 17:49:57 -08:00
TestJava.java foo 2012-11-03 08:47:32 -07:00
TestJavaLR.java foo 2012-11-03 08:47:32 -07:00
TestL.java fix bug in modes 2011-10-31 16:27:34 -08:00
TestR.java Move reportAmbiguity, reportContextSensitivity, reportAttemptingFullContext, reportInsufficientPredicates from ANTLRErrorStrategy to ANTLRErrorListener. 2012-03-12 15:07:48 -05:00
TestT.java almost there. 2012-10-11 18:47:47 -07:00
TestU.java 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
TestW.java change name of method 2011-10-11 16:16:29 -08:00
TransformEType.java playground stuff 2012-11-18 09:57:05 -08:00
U.g tweak to leave code for printing DFA DOT 2012-08-01 14:36:19 -07:00
W.g tweak 2011-11-10 12:30:12 -08:00
sample.csv got unbufferedchar working I think. 2012-09-30 12:37:35 -07:00
testjava.sh set type 2011-07-27 16:45:02 -08:00