Terence Parr
71b75c88dd
Fix regression; did not gen enter/exit in alt label structs.
2012-02-18 15:16:42 -08:00
Terence Parr
c6fd897287
altered naming scheme for listeners/visitors
...
* names changed. visit() -> visitX(). enter/exit() -> enter/exitX()
* capitalizing automatically now. rule s -> SContext not sContext
* no enter/exit method in generic rule context object if rule has alt labels, nor in interfaces.
* dup labels allowed in same rule
* label X or x illegal if rule x exists
2012-02-18 12:40:47 -08:00
Terence Parr
b33f157743
Merge branch 'visitors'
2012-02-16 18:14:16 -08:00
Terence Parr
725b105135
Added visitor gen mechanism, runtime support
2012-02-16 17:49:57 -08:00
Terence Parr
44c0c8ca5e
dont gen visitor unless -visitor option
2012-02-16 17:45:57 -08:00
Terence Parr
2b9511f333
Merge branch 'master' of github.com:parrt/antlr4 into visitors
2012-02-16 17:41:55 -08:00
Terence Parr
c098e5c729
rm file
2012-02-16 17:31:59 -08:00
Terence Parr
d00ec9d227
got -no prefix options working. rm'd dup error from toolError(); rm dbg print
2012-02-16 17:31:30 -08:00
Terence Parr
100b530201
report errors with too few alt labels or redef of alt label
2012-02-16 17:14:41 -08:00
Terence Parr
66e7e0fad2
Merge pull request #16 from sharwell/parrt_master
...
Fix listener name BlankJavaListener->JavaBaseListener
2012-02-16 16:12:52 -08:00
Sam Harwell
82aac56c98
Fix rule list labels
2012-02-16 17:35:01 -06:00
Sam Harwell
0520400493
TestPerformance: print additional information about states/configs
2012-02-16 15:41:43 -06:00
Terence Parr
646b22b9ec
snapshot
2012-02-16 13:36:07 -08:00
Terence Parr
4a374dab60
got visitors generated
2012-02-16 11:04:04 -08:00
Terence Parr
baf62685ab
snapshot
2012-02-16 10:27:56 -08:00
Terence Parr
8013bb868c
stash; got lost of visitor stuff working
2012-02-15 18:28:34 -08:00
Sam Harwell
feeaffc710
Fix listener name BlankJavaListener->JavaBaseListener
2012-02-15 19:06:27 -06:00
Terence Parr
f426e8781b
Merge pull request #14 from sharwell/parrt-master
...
Fixed excessive consume in execDFA and corrected the unit test that should have detected it
2012-02-15 12:40:11 -08:00
Sam Harwell
28919bbdc5
Fix ParserATNSimulator.execDFA consuming an unnecessary symbol after an accept or context-sensitive state is reached
2012-02-15 14:02:50 -06:00
Sam Harwell
79f0de4cde
Fix unit test checking for incorrect input index in warning message
2012-02-15 13:51:28 -06:00
Terence Parr
b44b0a3c09
Merge pull request #13 from sharwell/parrt-master
...
Several fixes on the latest updates
2012-02-15 10:57:34 -08:00
Sam Harwell
685cf7b7d5
Further improvements to auto-label generic usage, return Collections.emptyList() instead of null when no children are found
2012-02-15 12:31:43 -06:00
Sam Harwell
0bbb7101ba
Include input character in LexerNoViableAltException.toString()
2012-02-15 12:02:44 -06:00
Sam Harwell
bc87562aff
Remove unused exception LexerRecognitionExeption [sic]
2012-02-15 11:01:01 -06:00
Sam Harwell
5ab082967f
Fix generic usage
2012-02-15 10:50:37 -06:00
Sam Harwell
2d2134eb6b
Update BaseTest to compile XBaseListener instead of BlankXListener
2012-02-15 10:48:49 -06:00
Sam Harwell
40af402822
Allow enabling TEST_IN_SAME_PROCESS via jvm argument
2012-02-15 10:47:50 -06:00
Sam Harwell
707311996d
Updated TestPerformance (features, grammar fixes)
2012-02-15 10:28:59 -06:00
Sam Harwell
19afb4a8bc
Specify surefire plugin version
2012-02-15 10:28:58 -06:00
Terence Parr
3d56d40975
update playground
2012-02-14 16:33:34 -08:00
Terence Parr
fa3a664696
got some good examples working that play around with the getter methods.
2012-02-14 16:33:12 -08:00
Terence Parr
e30627c967
updated command line options.
2012-02-14 15:14:46 -08:00
Terence Parr
cdb420fdde
got implementation of getters in! Fixes #8
2012-02-14 15:01:03 -08:00
Terence Parr
b8f50d46e7
update playground
2012-02-14 13:59:53 -08:00
Terence Parr
a6786743d4
got it generating getters, labels correctly. now to impl getters
2012-02-14 13:58:48 -08:00
Terence Parr
6c2beb530d
see A.g4 for getter syntax; use e() not gete(). adding ContextGetterDecl.java
2012-02-13 20:47:19 -08:00
Terence Parr
203ad46820
fixed 8 unit tests; only 9 fail now.
2012-02-13 17:47:26 -08:00
Terence Parr
0031075da2
Merge branch 'master' into enhance-ctx
2012-02-13 17:36:56 -08:00
Terence Parr
2091f2d001
change enterRule to enter in listener interface
2012-02-13 17:35:29 -08:00
Terence Parr
7b672c31da
Merge pull request #11 from sharwell/clean-tests
...
Clean tests
2012-02-13 15:38:39 -08:00
Sam Harwell
146a9b0509
Fix unit test placing output files like "null.java" in the project directory
2012-02-13 16:32:42 -06:00
Terence Parr
b68ce1f5aa
almost got ctx stuff working
2012-02-13 11:47:26 -08:00
Terence Parr
97ab2c42da
mode wasn't working as lexer command
2012-02-13 11:45:10 -08:00
Terence Parr
ebb8b3a15b
Merge branch 'master' of github.com:parrt/antlr4 into enhance-ctx
2012-02-13 10:20:09 -08:00
Terence Parr
d06b83fd22
Merge pull request #8 from sharwell/62146c1651620445e96303e5522eddc2105f2379
...
Removed redundant check for null
2012-02-13 10:19:30 -08:00
Terence Parr
43daec6f5b
Merge branch 'master', remote-tracking branch 'origin' into enhance-ctx
2012-02-13 10:16:57 -08:00
Terence Parr
40b3bc0861
Merge pull request #9 from sharwell/9600a70724
...
Fix NPE in CommonToken
2012-02-13 10:16:15 -08:00
Terence Parr
8af1e23461
adding tests
2012-02-13 09:16:29 -08:00
Terence Parr
3dbf4cdabc
mid-job push so i can pull from work to continue. working on updating ctx objects to have getters
2012-02-13 09:15:54 -08:00
Terence Parr
f8285bcca0
another useful tuple
2012-02-13 09:15:05 -08:00