Terence Parr
|
e8f577e162
|
fix comment
|
2013-11-21 08:42:02 -08:00 |
Terence Parr
|
40789babf5
|
got tree pattern matching working on my test cases using a parser interpreter not been generated parser to compile patterns like "<ID> = <expr>;". It uses Sam's alteration to the ATN to have bypass alternatives for <expr> tags.
|
2013-11-20 17:54:57 -08:00 |
Terence Parr
|
2394b38995
|
added state to be consistent with enterRule(); most importantly, we need to set the state when we enter a recursive rule, which we are not doing at the moment. This was not a problem before because we never could directly call a recursive rule and the outer rule set the current state. Now that we are using recursive rules as start rules, we need to set the state.
|
2013-11-20 17:53:51 -08:00 |
Terence Parr
|
2791dd5619
|
Merge branch 'master' into tree-patterns
|
2013-11-20 16:57:16 -08:00 |
Terence Parr
|
8c57233db7
|
mv to runtime. damn git!
|
2013-11-20 16:53:49 -08:00 |
Terence Parr
|
1c71d05074
|
Merge branch 'master' into tree-patterns
|
2013-11-20 16:49:27 -08:00 |
Terence Parr
|
cc07f8faec
|
mv to runtime. was ref'ing v3 not v4 Token.
|
2013-11-20 16:47:17 -08:00 |
Terence Parr
|
578dcd0799
|
reformat
|
2013-11-20 16:36:34 -08:00 |
Terence Parr
|
c7e9a410e9
|
rm unused field _contextStack
|
2013-11-20 16:35:55 -08:00 |
Terence Parr
|
48ce1f1809
|
Support getting the serialized ATN from a recognizer
|
2013-11-20 16:22:01 -08:00 |
Terence Parr
|
d09510a936
|
Merge branch 'master' into tree-patterns
|
2013-11-20 16:09:36 -08:00 |
Terence Parr
|
41d9d5bfd4
|
Merge pull request #357 from sharwell/atn-deserializer
ATN deserializer
|
2013-11-20 14:33:07 -08:00 |
Terence Parr
|
42e5343287
|
Merge branch 'master' into tree-patterns
|
2013-11-20 14:31:08 -08:00 |
Terence Parr
|
5a6709aba6
|
update changes file, tweak parser interp test to use new api
|
2013-11-20 14:28:51 -08:00 |
Terence Parr
|
02f937b115
|
Merge branch 'master' into tree-patterns
|
2013-11-20 14:20:09 -08:00 |
Sam Harwell
|
b447256f20
|
Extract ATN deserialization to a new class ATNDeserializer
|
2013-11-20 09:14:18 -06:00 |
Sam Harwell
|
6eb8111756
|
Generate method stub so external calls directly to LR rules do not require the precedence argument
|
2013-11-15 16:15:34 -06:00 |
Terence Parr
|
8cace4e182
|
pull master BaseTest
|
2013-11-14 14:47:49 -08:00 |
Terence Parr
|
2f902da3d2
|
pull master into branch
|
2013-11-14 14:43:50 -08:00 |
Sam Harwell
|
3309c9d85e
|
Fix build warnings
|
2013-11-14 15:36:01 -06:00 |
Terence Parr
|
52981a1d97
|
Merge pull request #353 from sharwell/parser-interpreter
Parser interpreter
|
2013-11-14 12:06:45 -08:00 |
Terence Parr
|
ab931e4449
|
Merge pull request #97 from sharwell/precedence-predicates
Precedence predicates
|
2013-11-14 11:54:55 -08:00 |
Sam Harwell
|
320fada3e3
|
When building trees in TestPerformance, compute checksum after the parse using ParseTreeWalker
|
2013-11-14 13:42:39 -06:00 |
Sam Harwell
|
49970a46b0
|
Improved handling of parse listeners in TestPerformance
|
2013-11-14 13:42:39 -06:00 |
Sam Harwell
|
33043d68c2
|
Add the USE_PARSER_INTERPRETER flag to TestPerformance
|
2013-11-14 13:42:38 -06:00 |
Sam Harwell
|
f6024aae0a
|
Updated interpreter APIs
* Add Grammar.createLexerInterpreter and Grammar.createParserInterpreter
* Rewrite LexerInterpreter to extend Lexer (greatly simplified)
|
2013-11-14 13:42:38 -06:00 |
Sam Harwell
|
508817a706
|
Fully quality type names from ANTLR 3
|
2013-11-14 13:42:37 -06:00 |
Sam Harwell
|
7165a42d21
|
Make sure to send the final exit rule event in ParserInterpreter
|
2013-11-14 13:42:37 -06:00 |
Sam Harwell
|
e02968f0e7
|
Fix set and range transitions not matching input in ParserInterpreter
|
2013-11-14 13:42:36 -06:00 |
Sam Harwell
|
b2a4bb91a7
|
Add ParserInterpreter implementation
|
2013-11-14 13:42:36 -06:00 |
Terence Parr
|
a3d71db1bc
|
Merge pull request #352 from parrt/xpath
Add XPath to collect parse tree nodes/subtrees.
|
2013-11-13 16:22:37 -08:00 |
Sam Harwell
|
b14ca56441
|
Merge branch 'master' into precedence-predicates
|
2013-10-10 20:36:38 -05:00 |
Sam Harwell
|
b80ad5052d
|
Add regression test for issue #334 (already passes)
|
2013-09-30 22:35:03 -05:00 |
Terence Parr
|
8aeb90ef82
|
mv findAll to XPath; rm old test in playground.
|
2013-09-16 14:56:35 -07:00 |
Terence Parr
|
76633525bf
|
rm comments
|
2013-09-16 14:50:28 -07:00 |
Terence Parr
|
01082414c3
|
rebuilt XPath using ANTLR itself; added error handling; added ! operator
|
2013-09-13 13:53:42 -07:00 |
Terence Parr
|
09ddded3ed
|
cleaned up test rig. more tests. fix bugs.
|
2013-09-11 17:49:25 -07:00 |
Terence Parr
|
088cd4a9bc
|
got test rig start. added support test rig stuff to exec parser. add findAll to ParseTree interface.
|
2013-09-11 14:59:53 -07:00 |
Terence Parr
|
3fda64f85b
|
got a draft implementation
|
2013-09-11 11:25:07 -07:00 |
Terence Parr
|
8237952cbb
|
stash
|
2013-09-10 20:11:01 -07:00 |
Terence Parr
|
913cda0721
|
adding more xpath expr types
|
2013-09-10 19:48:36 -07:00 |
Terence Parr
|
d2caae46a7
|
working on xpath
|
2013-09-10 14:55:40 -07:00 |
Terence Parr
|
4055c24171
|
add comment
|
2013-09-09 17:30:04 -07:00 |
Terence Parr
|
76b4eef60a
|
more unit tests; add <.>
|
2013-09-09 17:26:16 -07:00 |
Terence Parr
|
6a26f0499f
|
a new test
|
2013-09-09 15:17:27 -07:00 |
Terence Parr
|
95aa103dc2
|
matches text now if not <ID> node
|
2013-09-09 15:13:37 -07:00 |
Terence Parr
|
f995e47443
|
rm ruletag from ParserRuleContext; back to (expr <expr>) for tag in pattern
|
2013-09-09 14:54:44 -07:00 |
Terence Parr
|
90187039f0
|
foo
|
2013-09-09 14:45:46 -07:00 |
Terence Parr
|
0df4411ea7
|
got optimized tree back with <expr> as single node
|
2013-09-09 13:50:33 -07:00 |
Terence Parr
|
cfac804b57
|
fix error handling to just match <expr> as token under expr RuleNode
|
2013-09-08 18:56:07 -07:00 |
Terence Parr
|
754348605d
|
create match object for matching
|
2013-09-05 16:58:37 -07:00 |
Terence Parr
|
35e279cef1
|
change name from T.g4 to X.g4 to avoid weird classloader issue. TLexer lives somewhere in my damn system and I can't find it.
|
2013-09-05 10:35:20 -07:00 |
Terence Parr
|
d2f7ba8339
|
cleanup
|
2013-09-04 17:25:14 -07:00 |
Terence Parr
|
4b87f84b99
|
got decent test rig
|
2013-09-04 17:09:14 -07:00 |
Terence Parr
|
531c31861a
|
got basic pattern compilation going
|
2013-09-04 14:48:21 -07:00 |
Terence Parr
|
2aade3eecc
|
avoid resource leak and cleanup (Coverity)
|
2013-08-31 17:46:23 -07:00 |
Terence Parr
|
fc2dfcda96
|
dodgy code cleanup (Coverity)
|
2013-08-31 17:36:16 -07:00 |
Terence Parr
|
3e53c0c61d
|
oops; deleted side-effecting "dead code"
|
2013-08-31 17:05:48 -07:00 |
Terence Parr
|
78298bb382
|
defined compareTo but not equals/hash (Coverity)
|
2013-08-31 16:56:07 -07:00 |
Terence Parr
|
875fa0a31d
|
rm dead code (Coverity)
|
2013-08-31 16:52:07 -07:00 |
Terence Parr
|
8bff26d758
|
fix cut-paste error (Coverity)
|
2013-08-31 16:47:33 -07:00 |
Terence Parr
|
21248a42ca
|
rm unneeded null ptr check (Coverity)
|
2013-08-31 16:37:16 -07:00 |
Terence Parr
|
1febc36e15
|
avoid potential null ptr deref (Coverity)
|
2013-08-31 16:32:59 -07:00 |
Terence Parr
|
0ac47437bc
|
rm potential null ptr deref (Coverity)
|
2013-08-31 16:20:34 -07:00 |
Terence Parr
|
9c186c8d52
|
rm print statement
|
2013-08-31 12:20:57 -07:00 |
Sam Harwell
|
04d2b5b92d
|
Add regression test for #315 (already passes)
|
2013-08-12 19:26:40 -05:00 |
Terence Parr
|
19fce5dd7d
|
change ruleElementOption back to elementOption
|
2013-08-08 16:12:01 -07:00 |
Terence Parr
|
531afe5af8
|
changed grammar to allow <assoc=right> on | operator for alt. still allowed on token refs but ignored. Simplified left-recursion elemination rules. see CHANGES.TXT Aug 7, 2013. BREAKING CHANGE. Must alter ternary op alts in grammars.
|
2013-08-08 17:06:15 -05:00 |
Terence Parr
|
185ee4e18e
|
add <options> notation to alt right after pipe. rename elementOption to ruleElementOption as it now can match options on alt. Move AltAST to have options.
|
2013-08-08 17:06:15 -05:00 |
Terence Parr
|
d041a4828a
|
fix poor function name: setTokenAssoc
|
2013-08-08 17:05:19 -05:00 |
Sam Harwell
|
274120c2b6
|
Now working on release 4.1.1
|
2013-07-02 19:11:04 -05:00 |
Sam Harwell
|
6236072e3b
|
Documentation updates prior to release
|
2013-06-30 15:50:56 -05:00 |
Sam Harwell
|
dbe1390c6f
|
Update referenced maven plugin version numbers
|
2013-06-30 12:47:26 -05:00 |
Sam Harwell
|
05f7fc6500
|
Update development version to 4.1 (from 4.0.1)
|
2013-06-30 12:46:41 -05:00 |
Terence Parr
|
b7133164f4
|
Merge pull request #294 from sharwell/fix-293
Remove tool/playground from source control, add to .gitignore
|
2013-06-29 11:58:42 -07:00 |
Sam Harwell
|
36acb139b7
|
Remove the SET_QUALIFIED_ATTR rule from ActionSplitter since it provides no additional functionality (fixes #295)
|
2013-06-28 10:28:55 -05:00 |
Sam Harwell
|
931df811db
|
Remove tool/playground from source control, add to .gitignore (fixes #293)
|
2013-06-25 14:30:25 -05:00 |
Sam Harwell
|
b0ddb45654
|
Merge pull request #284 from sharwell/epsilon-analysis
Add the EPSILON_CLOSURE error and EPSILON_OPTIONAL warning
|
2013-06-24 13:09:38 -07:00 |
Sam Harwell
|
82330a8a78
|
Support Unicode escape sequences in JavaUnicodeInputStream with indirection (multiple 'u' characters) (fixes #287)
|
2013-06-24 12:02:42 -05:00 |
Sam Harwell
|
40f41e2b1c
|
Fix ATN created for non-greedy optional block with multiple alternatives
|
2013-06-14 21:05:58 -05:00 |
Sam Harwell
|
3bb774a508
|
Add the EPSILON_CLOSURE error and EPSILON_OPTIONAL warning
|
2013-06-14 20:53:34 -05:00 |
Sam Harwell
|
cd73c212fb
|
Add regression test for #239
|
2013-06-09 14:11:35 -05:00 |
Sam Harwell
|
6fe7154c44
|
Exclusive or operator is left associative (fixes #280)
|
2013-06-08 21:09:33 -05:00 |
Sam Harwell
|
ba532cdd49
|
Support list labels on a set of tokens (fixes #270)
|
2013-06-08 11:59:47 -05:00 |
Sam Harwell
|
2a90413188
|
Use standard 0-based indexing
|
2013-06-01 22:07:27 -05:00 |
Sam Harwell
|
9167968b74
|
Only serialize unique sets (smaller serialized ATN)
|
2013-06-01 22:03:31 -05:00 |
Sam Harwell
|
dc801ad6a7
|
Extend the supported input character range to include all UTF-16 code points (specifically, U+FFFF is now supported, fixes #267)
|
2013-06-01 22:03:18 -05:00 |
Sam Harwell
|
f1f134c962
|
DiagnosticErrorListener includes rule names for each decision in its reports
|
2013-06-01 21:55:31 -05:00 |
Sam Harwell
|
2f2fd4585e
|
Improved error message for unterminated string literals (fixes #243)
|
2013-05-26 13:45:38 -05:00 |
Sam Harwell
|
d3af4a2f3a
|
Report errors that occur while lexing a grammar (fixes #262)
|
2013-05-26 13:45:38 -05:00 |
Sam Harwell
|
611e5ebf02
|
Significantly improve the performance of JavaUnicodeInputStream.LA(1)
|
2013-05-24 09:40:48 -05:00 |
Sam Harwell
|
469ebdd6e8
|
Fix unit tests now that the parser might not compute the conflicting alts BitSet before calling report methods
|
2013-05-20 14:58:32 -05:00 |
Sam Harwell
|
13f121a16f
|
Add @NotNull annotations to listener and visitor methods
|
2013-05-20 14:20:54 -05:00 |
Sam Harwell
|
d6c3841b0a
|
Generate Javadoc for the generated listener and visitor interfaces, classes, and methods
|
2013-05-20 14:19:53 -05:00 |
Sam Harwell
|
f6255bd5be
|
Add regression test for #248 (already passes)
|
2013-05-20 13:31:47 -05:00 |
Sam Harwell
|
ec8457383c
|
Calculate detailed transition statistics per decision
|
2013-05-18 14:22:09 -05:00 |
Sam Harwell
|
d8f2a5ce3c
|
Pass more information to ANTLRErrorListener methods
|
2013-05-18 14:17:36 -05:00 |
Sam Harwell
|
8d0a1bbd8d
|
Show additional information about rules and viable alternatives for conflicts, ambiguity, and/or context sensitivity
|
2013-05-18 11:46:57 -05:00 |
Sam Harwell
|
aad78ba7d2
|
Fix transition statistics calculation when a file contains no transitions
|
2013-05-18 11:40:36 -05:00 |
Sam Harwell
|
f758e8e24d
|
Some additional lexer tweaks
|
2013-05-18 11:19:28 -05:00 |