Terence Parr
|
5a2197a74d
|
fix bug where X : 'x' {pred}? ; wasn't seen as alias from X to 'x'.
|
2012-06-02 11:44:27 -07:00 |
Terence Parr
|
7192cc9a68
|
rm deadcode
|
2012-06-02 11:44:01 -07:00 |
Terence Parr
|
8481979f69
|
rename method
|
2012-06-01 18:06:48 -07:00 |
Terence Parr
|
94071d7d82
|
prevent negative indexes
|
2012-06-01 17:36:21 -07:00 |
Terence Parr
|
6539c5f464
|
remove inappropriate attributes of lexer rules
|
2012-05-24 13:07:43 -07:00 |
Terence Parr
|
cd82465830
|
updated [...] parser so it handles < > and [ ] properly. no escapes now.
|
2012-05-23 12:48:07 -07:00 |
Terence Parr
|
bc236a6e0b
|
no tree attribute
|
2012-05-22 16:54:45 -07:00 |
Terence Parr
|
8078d39053
|
rm "st" attribute
|
2012-05-22 16:42:05 -07:00 |
Terence Parr
|
868ca7ca6d
|
named actions in combined get copied to lexer now, but lexer::{...} are MOVED to lexer grammar.
|
2012-05-22 16:21:06 -07:00 |
Terence Parr
|
6314b7d31b
|
-> becomes # for alt labels
|
2012-04-26 11:59:57 -07:00 |
Terence Parr
|
f4abc84054
|
MutableInt's compare method was messed up.
|
2012-04-10 10:51:51 -07:00 |
Terence Parr
|
8155b1138e
|
Merge branch 'implicit-tokens' of git://github.com/sharwell/antlr4
|
2012-04-04 13:11:02 -07:00 |
Sam Harwell
|
2c1f673f62
|
Mark ErrorType fields final
|
2012-04-04 09:51:23 -05:00 |
Sam Harwell
|
1c9e52b5d6
|
Use CopyOnWriteArrayList instead of Collections.synchronizedList
|
2012-04-04 09:50:51 -05:00 |
Sam Harwell
|
9ce85cc6e4
|
Add error 126: implicit definition of string literal token in non-combined grammar
|
2012-04-04 09:38:28 -05:00 |
Sam Harwell
|
b433c2ae34
|
Add warning 125: implicit definition of token in parser
|
2012-04-03 16:40:52 -05:00 |
Terence Parr
|
3849cd572d
|
rm SymbolStream<T>, change all to TokenStream. all but 5 tests pass.
|
2012-04-02 16:49:04 -07:00 |
Sam Harwell
|
5fd8b223b6
|
Fix ErrorManager ignoring error code in messages
|
2012-04-02 18:13:47 -05:00 |
Terence Parr
|
9fbe9b6e21
|
op=(x|y) works as left-recur binary op now.
|
2012-03-30 13:00:31 -07:00 |
Sam Harwell
|
e5d7c27b09
|
Updated comments to indicate preference of .g4 over .g
|
2012-03-30 11:37:22 -05:00 |
Sam Harwell
|
cfcb2a1a55
|
Add Tool.GRAMMAR_EXTENSION (.g4) and Tool.LEGACY_GRAMMAR_EXTENSION (.g), allow imported grammars to use either extension (favoring .g4 over .g).
|
2012-03-30 11:36:20 -05:00 |
Terence Parr
|
42706485e9
|
was looking for imports with .g not .g4
|
2012-03-29 14:59:43 -07:00 |
Sam Harwell
|
95b6cd58c4
|
Fix NPE when a grammar contains no rules (instead of appropriate error message)
|
2012-03-27 21:25:23 -05:00 |
Terence Parr
|
bd51907c5e
|
Merge branch 'abstract-parser' of github.com:sharwell/antlr4
|
2012-03-27 15:18:06 -07:00 |
Sam Harwell
|
9b42e7dfe6
|
Implement support for abstract grammars via the "abstract" grammar option and "-abstract" command line option. Resolves antlr/antlr4#36.
|
2012-03-26 18:00:16 -05:00 |
Sam Harwell
|
4bc615d72f
|
Ensure that serialized transitions only point to states which weren't removed. Add unit test for a current failure case (will be a regression test once fixed).
|
2012-03-19 08:32:34 -05:00 |
Terence Parr
|
a9e74ce399
|
Merge branch 'failed-predicate-message' of git://github.com/sharwell/antlr4
|
2012-03-06 13:28:47 -08:00 |
Terence Parr
|
ce142a2a4c
|
Merge commit '51c38c1'
|
2012-03-06 13:27:46 -08:00 |
Sam Harwell
|
5280bc3280
|
Tweak doc comment
|
2012-03-06 07:34:20 -06:00 |
Sam Harwell
|
c3cd99858c
|
Reduce size of generated code by emitting predicate text instead of full failed predicate message
|
2012-02-29 08:14:42 -06:00 |
Sam Harwell
|
51c38c1103
|
Use single int _alt in generated code instead of a new _alt<choice.uniqueID> for each PlusBlock and StarBlock
|
2012-02-29 07:56:29 -06:00 |
Terence Parr
|
67b2e6d7c1
|
forgot to move Pair etc...
|
2012-02-26 21:55:23 -08:00 |
Terence Parr
|
41be88dcd5
|
mv to runtime
|
2012-02-26 15:49:45 -08:00 |
Terence Parr
|
b7da3361de
|
fix bug. e : e '(' exprList ')' ... ; came back with e as a list not single element.
|
2012-02-26 15:33:05 -08:00 |
Sam Harwell
|
90bcfec456
|
Simplify CodeGenerator
|
2012-02-24 15:58:21 -06:00 |
Sam Harwell
|
019ea15e3f
|
Catch specific RecognitionException instead of Exception
|
2012-02-23 16:45:35 -06:00 |
Sam Harwell
|
2c8ef6470f
|
Despite being absurdly verbose in Java, use callable objects instead of reflection in CodeGenerator because the latter is prone to runtime errors and debugging headaches
|
2012-02-23 16:44:54 -06:00 |
Sam Harwell
|
9bf6f284df
|
Code cleanup (little things like using .isEmpty() and StringBuilder, and specify some small-scale generic arguments)
|
2012-02-23 16:42:36 -06:00 |
Sam Harwell
|
1492648d26
|
Add missing @Override annotations
|
2012-02-23 16:13:06 -06:00 |
Terence Parr
|
b459dafeb9
|
empty alternatives didn't trigger listener events. overrode getParent in ParserRuleContext to make type more specific.
|
2012-02-23 12:16:14 -08:00 |
Terence Parr
|
5a13ddc517
|
fix regression; LR rules weren't working
|
2012-02-23 11:37:50 -08:00 |
Terence Parr
|
d30b36ca01
|
tweak to compile with 3.4
|
2012-02-23 10:05:43 -08:00 |
Sam Harwell
|
4aee8aa4dc
|
Merge remote-tracking branch 'parrt/master'
|
2012-02-22 15:46:22 -06:00 |
Sam Harwell
|
7c0d5cd726
|
Fix use of v3 runtime generics
|
2012-02-22 15:44:17 -06:00 |
Terence Parr
|
8a34176d82
|
added listener unit tests. fixed bug that didn't create ctx getters properly for recursive rules. added Symbol extends Token to parse tree stuff. added visitTerminal to Visitor. recursive alts now track their original, unedited AltAST subtree so we can properly count rule refs etc... later. dup of RuleRefAST was making wrong node. don't gen dispatch methods if no listener.
|
2012-02-22 12:44:33 -08:00 |
Sam Harwell
|
a81b1a17eb
|
Extract abstract method in Recognizer for Parser.getGrammarFileName() and generated lexer's getGrammarFileName(). Make Recognizer.getTokenNames(), getRuleNames(), and getATN() abstract - implementations are always generated.
|
2012-02-20 17:18:57 -06:00 |
Sam Harwell
|
d166e6d5d1
|
Emit grammar file name instead of generated class file name in generated implementation of getGrammarFileName(). Implement getGrammarFileName() in generated parser.
|
2012-02-20 17:14:19 -06:00 |
Terence Parr
|
7287f5a2d3
|
prefix left-recursive alts weren't recognized with actions on end.
|
2012-02-20 10:51:34 -08:00 |
Terence Parr
|
642177f716
|
forgot to add dispatch methods in context objects. in-parse listeners should work now.
|
2012-02-19 11:25:15 -08:00 |
Terence Parr
|
4e8931519c
|
added -parse-listener option and generated code if option on. parse listener differs from tree listener
|
2012-02-18 16:49:05 -08:00 |