Sam Harwell
|
b6f6c99c3c
|
Updated documentation for ErrorType
|
2014-01-19 21:00:56 -06:00 |
Sam Harwell
|
a55901bc0d
|
We are working on the 4.2 release
|
2014-01-19 13:43:57 -06:00 |
Terence Parr
|
9b85e9c636
|
Merge pull request #426 from sharwell/fix-175
Support grammar files encoded with UTF-8 with a byte order mark
|
2014-01-17 10:22:47 -08:00 |
Sam Harwell
|
14107cc40a
|
Add regression test for expression performance (closes #192)
|
2014-01-17 08:54:43 -06:00 |
Sam Harwell
|
da0864a2f8
|
Support grammar files encoded with UTF-8 with a byte order mark (fixes #175)
|
2014-01-17 08:37:49 -06:00 |
Sam Harwell
|
664d66d937
|
Fix incorrect combineMax implementation (fixes #299)
|
2014-01-16 20:35:03 -06:00 |
Sam Harwell
|
9889de87ac
|
Add regression test highlighting issue #299
|
2014-01-16 20:35:03 -06:00 |
Sam Harwell
|
85a923f61e
|
Fix IndexOutOfBoundsException when using ANTLR with Java 8 (fixes #337)
|
2014-01-16 17:13:18 -06:00 |
Sam Harwell
|
dbfb230b11
|
Cleaner output in TestPerformance when checksum calculation is disabled
|
2014-01-16 16:11:21 -06:00 |
Sam Harwell
|
f2966aaa80
|
Improve support for m2e (Maven/Eclipse integration) (fixes #319)
|
2014-01-16 15:44:12 -06:00 |
Sam Harwell
|
4fc32e1f7c
|
Fix options not getting properly applied to extracted lexer in combined grammar (fixes #372)
|
2014-01-16 10:34:55 -06:00 |
Sam Harwell
|
05b8c22833
|
Syntax errors while lexing stop grammar compilation process (fixes #308)
|
2014-01-15 21:39:19 -06:00 |
Sam Harwell
|
511c60fe7b
|
Merge pull request #417 from sharwell/fix-370
Fix 370
|
2014-01-15 12:33:11 -08:00 |
Sam Harwell
|
83ad25ea1d
|
Add regression test for #370
|
2014-01-15 14:31:41 -06:00 |
Terence Parr
|
d0b8ccefdc
|
set filename
|
2014-01-15 12:14:11 -08:00 |
Terence Parr
|
9f28fca583
|
split action/command tests from lexer tests; add tests for new action stuff from Sam.
|
2014-01-15 11:36:37 -08:00 |
Terence Parr
|
3c51f7ad7b
|
Add tests for ungrammatical tree patterns. Fixes #413
|
2014-01-15 11:15:31 -08:00 |
Sam Harwell
|
5e9b869f1d
|
Updated lexer to support encoding commands in the ATN and interpreting them with LexerInterpreter
|
2014-01-14 20:17:37 -06:00 |
Terence Parr
|
d4275ab53a
|
Range check; apparently string literal map not set when we create interp vs code gen.
|
2014-01-14 19:26:39 -06:00 |
Terence Parr
|
bc4f3a72aa
|
add helper methods and rename some internal Tool methods
|
2014-01-14 19:26:32 -06:00 |
Sam Harwell
|
967e74aa0d
|
Pass the ATN through the ATNSerializer prior to creating an interpreter (fixes #403)
|
2014-01-13 20:17:04 -06:00 |
Sam Harwell
|
266f7276d1
|
Initial implementation of a "precedence DFA" (fixes #400)
|
2014-01-09 18:11:17 -06:00 |
Sam Harwell
|
bf22a0af5b
|
Add regression test for #398
|
2014-01-09 06:51:49 -06:00 |
Terence Parr
|
6b2817f8bb
|
get last not first when get() finds multiple matching nodes.
|
2013-12-20 12:47:19 -08:00 |
Terence Parr
|
8c5d088eb7
|
Merge pull request #378 from sharwell/polish
Tree patterns polish
|
2013-12-19 17:24:42 -08:00 |
Sam Harwell
|
fb1880d82c
|
Move ATNSerializer to runtime
|
2013-12-19 19:07:24 -06:00 |
Sam Harwell
|
bc59f30857
|
Use ATNDeserializer methods instead of deprecated ATNSimulator methods
|
2013-12-19 19:07:23 -06:00 |
Sam Harwell
|
2a9a716c53
|
Remove unnecessary methods ParseTreeMatch.getText() and failed() (use getTree().getText() and !succeeded() instead)
|
2013-12-19 19:06:22 -06:00 |
Sam Harwell
|
72675075cf
|
Remove unnecessary testing constructor
|
2013-12-19 19:06:21 -06:00 |
Sam Harwell
|
75b8174dc8
|
Clean up the result caching for getTokenTypeMap and getRuleIndexMap
|
2013-12-19 19:06:20 -06:00 |
Sam Harwell
|
df61690758
|
Clean up the caching of ATN instances with bypass alternatives
|
2013-12-19 19:06:19 -06:00 |
Terence Parr
|
9ca6bf9bd3
|
fix null pointer bug with rule "a : a;"
|
2013-12-19 16:35:37 -08:00 |
Terence Parr
|
bd91dc166d
|
add getTokenTypeMap(), getRuleIndexMap() to recognizer. Gen new fields for that an ATN with bypass alts. Then methods for that: getATNWithBypassAlts(). Big changes to interface for ParseTreeMatch; create Parser.compileParseTreePattern() method. Convert rule names to rule indexes.
|
2013-11-24 14:04:46 -08:00 |
Terence Parr
|
4c52a103e1
|
cleanup
|
2013-11-22 11:31:59 -08:00 |
Terence Parr
|
b2ec85d14d
|
updated comments, cleaned up the API, made helper routines.
|
2013-11-22 11:08:16 -08:00 |
Terence Parr
|
168bce79d3
|
working on api
|
2013-11-22 09:55:40 -08:00 |
Terence Parr
|
4fdd520c2e
|
got labels working
|
2013-11-21 16:01:02 -08:00 |
Terence Parr
|
1e83557819
|
reorg to pass round a match object in matches_()
|
2013-11-21 10:30:37 -08:00 |
Terence Parr
|
e836544d30
|
add test for hidden tokens
|
2013-11-21 09:55:26 -08:00 |
Terence Parr
|
e68757717f
|
pass a lexer and a parser to the tree pattern match or instead of the classes.
|
2013-11-21 09:32:45 -08:00 |
Terence Parr
|
33d11709df
|
Revert "fix comment"
This reverts commit e8f577e162 .
|
2013-11-21 08:42:28 -08:00 |
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 |