Sam Harwell
934bea8b12
Add -long-messages option; only show exceptions with errors when set
2012-12-11 08:43:25 -06:00
Sam Harwell
380d3dadde
Create a ParseTreeVisitor interface, rename current abstract base class to AbstractParseTreeVisitor
2012-12-02 17:57:28 -06:00
Terence Parr
84306fa385
Remove -Xverbose-dfa option. Fixes antlr/antlr4#92
2012-12-02 10:31:58 -08:00
Terence Parr
346da8b863
remove -Xsave-lexer option; log file as implicit lexer AST. Fixes antlr/antlr4#82
2012-12-01 17:30:12 -08:00
Terence Parr
9e3907d573
tokens now have token and char source to draw from. fix and close antlr/antlr4#88
2012-12-01 17:23:50 -08:00
Terence Parr
35202df715
label+='foo' wasn't generating good code. It was generating token type as variable name. Now, I gen "s<ttype>" for implicit labels on string literals. Augmented unit test. Fixes antlr/antlr4#90
2012-12-01 16:26:06 -08:00
Terence Parr
6d6389eef2
added error for bad sets in lexer. some tests in TestSets appeared to allow ~('a'|B) but it was randomly working. ('a'|B) works without the ~, though doesn't collapse to a set. fixes antlr/antlr4#70
2012-12-01 15:44:23 -08:00
Terence Parr
fc79752748
Merge branch 'master' of github.com:antlr/antlr4
2012-12-01 14:38:33 -08:00
Terence Parr
7049972ab7
escape [\r\n\t] in lexical error messages. Fixes antlr/antlr4#75
2012-12-01 14:36:59 -08:00
Sam Harwell
8ca298faff
Update changes.txt
2012-11-30 12:34:54 -06:00
Sam Harwell
81c4ebbf6f
Update changes.txt
2012-11-26 14:36:16 -06:00
Terence Parr
355eb42898
This misidentified scope lexer/parser: @lexer::members { } @parser::members { }
2012-11-22 15:50:21 -08:00
Terence Parr
3c0883e9c3
fix: actions like @after in imported rules caused inf loop. added unit test.
2012-11-22 15:43:21 -08:00
Terence Parr
6bf7bf26fd
rename tokens->tokenStream; make sure left-recur rule translation uses token stream from correct imported file.
2012-11-22 12:26:08 -08:00
Terence Parr
3e91065824
Detect EOF in lexer rule
2012-11-18 14:24:18 -08:00
Terence Parr
060343f027
* added check for v3 backward incompatibilities:
...
** (...)=> syntactic predicates
2012-11-18 14:10:28 -08:00
Terence Parr
c5bf2ba0bd
* added check for v3 backward incompatibilities:
...
** {...}?=> gate semantic predicates
2012-11-18 13:59:43 -08:00
Terence Parr
38214f6312
* added check for v3 backward incompatibilities:
...
** tokens {A;B;} syntax
** tokens {A='C';} syntax
2012-11-18 13:39:09 -08:00
Terence Parr
ae111eddbd
* added check for v3 backward incompatibilities:
...
** labels in lexer rules
2012-11-18 13:03:37 -08:00
Terence Parr
397f28d12c
added check for v3 backward incompatibility: tree grammars
2012-11-18 12:53:48 -08:00
Terence Parr
b214f36044
cleanup, rm dead etypes, add check for ids that cause code gen issues; added notion of one-off error
2012-11-18 11:00:06 -08:00
Terence Parr
468c791267
cleanup ErrorType a bit, split an error msg.
2012-11-18 09:56:41 -08:00
Terence Parr
0a8e7220f8
fixed: undefined rule refs caused exception
2012-11-18 09:33:11 -08:00
Terence Parr
afe2224881
wasn't checking soon enough for rule redef; now it sets a dead flag in
...
AST so no more walking dup.
error(51): T.g:7:0: rule s redefinition (ignoring); previous at line 3
2012-11-18 09:07:30 -08:00
Terence Parr
6a345316df
if labels, don't allow set collapse for
...
a : A # X | B ;
2012-11-17 18:06:23 -08:00
Terence Parr
80b1fa7acb
properly check for grammar/filename difference
2012-11-17 17:24:13 -08:00
Terence Parr
e86f89724f
added check: action in lexer rules must be last element of outermost alt
2012-11-17 16:50:38 -08:00
Terence Parr
b1a3370934
.tokens files goes in output dir like parser file.
2012-11-17 16:25:51 -08:00
Terence Parr
328dedd778
change version
2012-11-11 10:41:04 -08:00
Terence Parr
e5c2dfaac4
Kill box in tree dialog box makes dialog dispose of itself
2012-11-04 15:47:00 -08:00
Terence Parr
d1795d205f
Revert "add option -exact-ambiguities to TestRig"
...
This reverts commit 400b58d4a0
.
2012-11-03 17:34:34 -07:00
Terence Parr
400b58d4a0
add option -exact-ambiguities to TestRig
2012-11-03 16:40:23 -07:00
Terence Parr
72c1fc8f6d
tweaks on comments
2012-10-29 12:47:09 -07:00
Terence Parr
a115490d5e
Merge branch 'warnings-as-errors' of git://github.com/sharwell/antlr4
2012-10-29 11:27:46 -07:00
Terence Parr
d996b5c8c7
update change log
2012-10-20 12:15:43 -07:00
Terence Parr
93070445bd
update change log
2012-10-14 18:53:54 -07:00
Terence Parr
6102c632bc
update changes.txt
2012-10-08 11:33:40 -07:00
Terence Parr
40ca5bf6b0
set release for today.
2012-10-01 15:48:12 -07:00
Terence Parr
2db3691f6d
added -depend cmd-line option; fixes #71
2012-09-30 18:27:36 -07:00
Terence Parr
68dd847c04
* Fixed the unbuffered streams, which actually buffered everything
...
up by mistake. tweaked a few comments.
* Added a getter to IntStream for the token factory
2012-09-30 16:45:30 -07:00
Terence Parr
098bdab294
tweak for 4.0b2 version num.
2012-09-29 12:53:44 -07:00
Terence Parr
84c786da50
update change list.
2012-09-29 12:36:41 -07:00
Terence Parr
ea652962ea
allow "tokens {}"
2012-09-28 16:39:36 -07:00
Terence Parr
5f8645ce9f
forgot to add to the changes list
2012-09-22 17:36:59 -07:00
Terence Parr
91bad33f57
comment out attributes for lexical rule references.
2012-09-22 15:01:54 -07:00
Terence Parr
046402b00e
updated Changes
2012-09-18 11:01:52 -07:00
Terence Parr
5fbc994342
update changes
2012-04-26 12:26:14 -07:00
Terence Parr
65bd541242
add to changes file
2012-02-18 16:50:12 -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
fa3a664696
got some good examples working that play around with the getter methods.
2012-02-14 16:33:12 -08:00