parrt
|
2e8a5f391a
|
no more -trace
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9826]
|
2012-01-04 17:41:42 -08:00 |
parrt
|
78c7c254a0
|
rm cmt'd out prints
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9825]
|
2012-01-04 17:40:59 -08:00 |
parrt
|
7d68546dbe
|
rm prints
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9824]
|
2012-01-04 17:37:15 -08:00 |
parrt
|
e7f6ba5ac1
|
lr rules now gen only 1 rule e->e not e->e_ etc... altered tests to build parse trees.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9823]
|
2012-01-04 17:36:24 -08:00 |
parrt
|
e29b11882d
|
fix unit tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9816]
|
2012-01-04 15:47:52 -08:00 |
parrt
|
b2269a22f4
|
not needed
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9815]
|
2012-01-04 15:42:55 -08:00 |
parrt
|
cab41e41e3
|
had non-ascii char
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9812]
|
2012-01-04 09:05:31 -08:00 |
parrt
|
963ccd2700
|
added comment
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9797]
|
2012-01-03 12:46:51 -08:00 |
parrt
|
224a4bc9e1
|
changed formatting
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9796]
|
2012-01-03 12:46:39 -08:00 |
parrt
|
8099cec3bd
|
Added ctx to visitTerminal in parse tree listener. That should be useful information. made commensurate change in the parse tree walker to make sure I have a proper context to send to the visitTerminal method. renamed a few fields of parser/lexer to have _ in front to avoid name collisions with user actions. change the name of the listener method so that they're more explicit using the terms Error and Parser to identify what kind of listener we are adding or removing. Added a default TraceListener to Parser so that we can call setTrace(true) to have it start dumping out information as a first step in the debugging process. there are now multiple parse tree listeners possible because I made a list. we may want to pass in multiple actions to the parser.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9795]
|
2012-01-03 12:46:18 -08:00 |
parrt
|
5c328c7e3f
|
Bug: didn't stop at end of stream during consume()
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9794]
|
2012-01-03 12:40:42 -08:00 |
parrt
|
1d6bbb08c3
|
kill
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9793]
|
2012-01-03 12:30:21 -08:00 |
parrt
|
5d60e85617
|
rm trace ATN state stuff. Will think about when we do debugging.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9792]
|
2012-01-03 11:07:49 -08:00 |
parrt
|
c716a87544
|
move method down in file
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9791]
|
2012-01-03 11:05:40 -08:00 |
parrt
|
2d9139ca4d
|
remove % from ActionSplitter.g
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9790]
|
2012-01-03 11:04:12 -08:00 |
parrt
|
5c3c8d6e7a
|
Added TokenFactory, CommonTokenFactory. Update the parser in the lexer with methods to set the factory. Alter the default error strategy and the lexer to use the factory. The parser's set token factory method updates the token source, usually the lexer, and the error handling strategy. I had to add the set token factory method to token source as well to make all of this work.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9789]
|
2012-01-03 10:58:01 -08:00 |
parrt
|
3aeeb2b277
|
rename BaseREcognizer as Parser
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9781]
|
2012-01-02 18:36:59 -08:00 |
parrt
|
1b04195a2f
|
removed all template / AST rewrite stuff; massive change; added -encoding tool option
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9780]
|
2012-01-02 18:13:16 -08:00 |
parrt
|
1921a46dd2
|
include ST v4
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9779]
|
2012-01-02 17:11:39 -08:00 |
parrt
|
ddb68aa948
|
new example
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9778]
|
2012-01-02 14:07:11 -08:00 |
sharwell
|
3d620734af
|
Merging CL9604 to main (optimized string literals in generated code)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9777]
|
2012-01-02 12:08:18 -08:00 |
parrt
|
9114749c51
|
add Main-Class:org.antlr.v4.Tool to manifest
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9774]
|
2012-01-01 14:41:44 -08:00 |
parrt
|
77c13da7c5
|
fix include
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9773]
|
2012-01-01 14:36:55 -08:00 |
parrt
|
5aada9b2a5
|
includes templates
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9772]
|
2012-01-01 11:53:57 -08:00 |
parrt
|
029eae90b7
|
no v2 in jar
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9771]
|
2012-01-01 11:39:27 -08:00 |
parrt
|
8b2abff09b
|
make complete jar
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9770]
|
2012-01-01 11:24:26 -08:00 |
parrt
|
47bf5a086e
|
add antlr3.4 jars
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9769]
|
2012-01-01 11:08:52 -08:00 |
parrt
|
93011a6195
|
add
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9768]
|
2012-01-01 10:35:31 -08:00 |
parrt
|
353ddc6c2b
|
using wrong map class
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9767]
|
2012-01-01 10:27:51 -08:00 |
parrt
|
dff466be66
|
literal rules like A:'a' not seen in modes; weren't in .tokens files
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9766]
|
2011-12-31 17:26:48 -08:00 |
parrt
|
8846b98ee7
|
fix compile error
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9765]
|
2011-12-29 17:05:34 -08:00 |
parrt
|
a923ad8765
|
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.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9764]
|
2011-12-29 17:04:40 -08:00 |
parrt
|
3a3ed27e60
|
add some tests
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9763]
|
2011-12-28 19:49:37 -08: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
|
3b51bb478d
|
rm unneeded field
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9761]
|
2011-12-27 15:52:47 -08:00 |
parrt
|
d01bde9125
|
added new reportAttemptingFullContext to strategy
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9760]
|
2011-12-27 15:25:01 -08:00 |
parrt
|
9853061093
|
added null chk
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9759]
|
2011-12-27 14:32:19 -08:00 |
parrt
|
bb960e3c37
|
improved data to report insuff. preds. also, it was detecting it improperly
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9758]
|
2011-12-27 14:11:41 -08:00 |
parrt
|
638969bed9
|
add '...' to diagnostics input
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9757]
|
2011-12-27 13:37:47 -08:00 |
parrt
|
c1e199d77f
|
added -tokens flag
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9756]
|
2011-12-26 18:10:29 -08:00 |
parrt
|
bf8473e0fd
|
add cmt
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9755]
|
2011-12-26 17:57:00 -08:00 |
parrt
|
24c572d055
|
oops. antlr was ok, it was javalr grammar.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9754]
|
2011-12-26 17:14:29 -08:00 |
parrt
|
299c29d927
|
more lexer rule specialization in parser. got antlr almost back to working with new [Aa] notation in lexer.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9753]
|
2011-12-26 17:09:01 -08:00 |
parrt
|
ce9638e59c
|
was still creating dfa with sempreds
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9752]
|
2011-12-26 17:07:45 -08:00 |
parrt
|
3fae7cc880
|
rm unnecessary code
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9751]
|
2011-12-26 16:56:51 -08:00 |
parrt
|
d9efffd104
|
Add [abc] syntax to allow set of char in lexer; args aren't allowed so unambig.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9750]
|
2011-12-26 15:58:40 -08:00 |
parrt
|
6fa5e52d5e
|
added => skip, channel(99), more, mode(xx), push(xx), pop lexer syntax. separated lexer rules from others in parser / AST now.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9749]
|
2011-12-26 15:14:49 -08:00 |
parrt
|
c1923a107e
|
-tree => -print option
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9748]
|
2011-12-26 14:05:58 -08:00 |
parrt
|
db655f8f2c
|
add -gui option to view in gui window
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9747]
|
2011-12-26 13:06:05 -08:00 |
parrt
|
5c50e5f049
|
Wasn't using Udo's lib correctly
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9746]
|
2011-12-26 13:05:46 -08:00 |