Eric Vergnaud
26c409103d
Fix #1217
...
The root cause was that ATNConfigSet was not using he required custom hashing strategy for ParserATNSimulator.
The commit includes a number of additional fixes, related to code that was never executed before due to the root cause.
A similar issue is also likely to exist in the JavaScript runtime, I'll fix it later.
2016-06-23 15:51:39 +02:00
Eric Vergnaud
c260ce75d1
make it possible to add breakpoint
2016-06-23 15:06:14 +02:00
Eric Vergnaud
2a2b6acba1
links update
2016-04-26 13:27:26 +08:00
parrt
d430f495ea
add comments to "dead" code in serializer. text from Sam Harwell.
2016-04-25 09:49:29 -07:00
parrt
b92f22769e
[maven-release-plugin] prepare for next development iteration
2016-03-30 16:25:49 -07:00
parrt
567fcc6311
[maven-release-plugin] prepare release antlr4-master-4.5.3
2016-03-30 16:25:45 -07:00
parrt
cd0913712a
set code string versions to 4.5.3
2016-03-30 16:21:50 -07:00
parrt
3d21617e30
need blank ctor
2016-03-30 13:11:33 -07:00
parrt
9e98714a1d
Add ability to set parse tree internal node super class with option contextSuperClass. Provide impl in Java target that has altNum backing field. Add test across targets to set/get alt num. Fixes #1152 .
2016-03-30 11:00:47 -07:00
Terence Parr
9c440c5b89
Merge pull request #1139 from dtymon/06_fix_SemanticPredicate
...
JS: SemanticPredicate should be SemanticContext
2016-03-30 16:39:18 +00:00
Terence Parr
4deb708cd8
Merge pull request #1138 from dtymon/05_fix_OR_toString
...
JS: Fix copy-and-paste error in OR SemanticContext toString() method
2016-03-30 16:39:08 +00:00
Terence Parr
0c804f0a28
Merge pull request #1137 from dtymon/04_lexerActionExecutor_equals
...
JS: Do deep Actions array comparison in LexerActionExecutor equals()
2016-03-30 16:38:56 +00:00
parrt
90d753b08a
Add getMaxTokenType for C# vocab object like https://github.com/antlr/antlr4/pull/1146
2016-03-29 16:14:53 -07:00
parrt
ac1637c0bd
add get max token type to vocab.
2016-03-29 16:02:33 -07:00
parrt
1356186f65
add get max token type to vocab.
2016-03-29 15:55:02 -07:00
parrt
41a196082d
Merge branch 'master' of github.com:antlr/antlr4
2016-03-29 14:40:17 -07:00
parrt
e4a4253219
more impl of get/set alt num; update doc
2016-03-28 14:10:29 -07:00
Martin Steiger
6ca812e255
Add Vocabulary.getMaxTokenType()
2016-03-28 22:08:31 +02:00
parrt
fa10ca678f
add method to RuleContext
2016-03-28 11:35:44 -07:00
David Tymon
eb5af71a30
JS: ATNConfig can incorrectly change "alt" of 0 to null
...
When an ATNConfig instance is created with an alt of 0, it is
possible for it to be incorrectly changed to null due to its
"falsey" nature.
2016-03-15 13:38:55 +11:00
David Tymon
5e176e405f
JS: SemanticPredicate should be SemanticContext
...
AND.evalPrecedence() method is attempting to invoke a method on a
non-existent class "SemanticPredicate". It should be using
"SemanticContext" instead.
2016-03-15 13:32:48 +11:00
David Tymon
0dbb12ad1a
JS: Fix copy-and-paste error in OR SemanticContext toString() method
...
- the OR toString() method was incorrectly added to the AND prototype
2016-03-15 11:00:36 +11:00
David Tymon
0262aac8f6
JS: LexerActionExecutor equals() should do deep comparison of Actions array
...
- according to the corresponding Java implementation, the equals()
method for LexerActionExecutor should be doing an equals() test
on each of the actions rather than testing the Array reference
is equal.
2016-03-15 10:55:17 +11:00
Terence Parr
d0fb48c2b8
Merge pull request #1103 from ericvergnaud/master
...
latest version of honey-require
2016-02-10 12:40:53 -08:00
parrt
ae8ea836fc
reopen PR #1081
2016-02-09 11:47:54 -08:00
Eric Vergnaud
b0196bc86e
fixes #1108
2016-02-09 10:25:31 +08:00
Eric Vergnaud
7a59e92b8d
latest version of honey-require
2016-02-02 21:01:28 +08:00
Terence Parr
184f711753
[maven-release-plugin] prepare for next development iteration
2016-01-30 10:01:53 -08:00
Terence Parr
dcca95d4f0
[maven-release-plugin] prepare release 4.5.2
2016-01-30 10:01:48 -08:00
Terence Parr
c92ddcbd06
update version to 4.5.2 in source / packaging stuff.
2016-01-30 09:54:47 -08:00
Terence Parr
8fbf46b2f2
why oh why does intellij skip changes when i push?
2016-01-28 20:16:49 -08:00
Terence Parr
9a053d63b1
Merge pull request #1084 from dtymon/03_lexerActionExecutor_hash_string_clash
...
JS: LexerActionExecutor cached hash string name clashes with function
2016-01-28 11:11:15 -08:00
Terence Parr
da27381fc1
Merge pull request #1083 from dtymon/02_ll1analyzer-incorrect_atnconfig_ctor
...
JS: LL1Analyzer passing PredictionContext incorrectly to ATNConfig ctor
2016-01-28 11:11:01 -08:00
parrt
34787c0fd8
Merge branch 'patch-1' of git://github.com/cooperra/antlr4 into cooperra-patch-1 Fixes #1081
2016-01-28 10:54:47 -08:00
Terence Parr
49cc92aa35
Merge pull request #1060 from ericvergnaud/missing-js-visitor-methods
...
fix #1058
2016-01-28 10:51:21 -08:00
parrt
7e6af55245
Merge branch 'master' of github.com:antlr/antlr4
2016-01-28 10:49:23 -08:00
parrt
5299d436aa
Merge branch 'patch-1' of git://github.com/cooperra/antlr4 into cooperra-patch-1
...
# Conflicts:
# contributors.txt
2016-01-28 10:47:03 -08:00
David Tymon
a1c63234e1
JS: Added 'require' statements are missing the class names
2015-12-24 19:04:22 +11:00
FUJI Goro (gfx)
4a1ec7df38
Remove Utils#waitForClose()
...
It is used nowhere but imports java.awt.*; Android runtime
has no java.awt.* so Android SDK build tools say "it includes
invalid packages". It's better if antlr4-runtime has no dependency
on java.awt.*, esp. it is not used anymore.
2015-12-24 14:04:58 +09:00
David Tymon
812794600d
JS: LexerActionExecutor cached hash string name clashes with function
...
LexerActionExecutor caches its hash string in a member called
'hashString'. However, the class also has a method with the
same name which leads to unexpected results.
The member has been renamed to '_hashString' to avoid the name
clash.
2015-12-24 13:06:59 +11:00
David Tymon
f40ce5a188
JS: LL1Analyzer passing PredictionContext incorrectly to ATNConfig constructor
...
The PredictionContext should be passed to the ATNConfig constructor
in the first argument, the params object. Instead, it is being passed
as the second argument which is intended to be the config.
2015-12-24 13:01:40 +11:00
David Tymon
0455e0a09f
JS: Fix missing 'requires' statements
2015-12-24 12:23:09 +11:00
Peter Boyer
797dd823be
Fix mistake in tokenIndex bounds check
...
undefined < anyInteger
returns false
2015-12-15 21:44:47 -05:00
Eric Vergnaud
c651c83a8b
fix #1058
2015-12-09 22:17:46 +08:00
Terence Parr
8a4aa39de2
fix links
2015-11-23 16:19:45 -08:00
Eric Vergnaud
98abfc14f3
Update GitHub references in npm package
2015-11-12 07:57:52 +08:00
Terence Parr
482d8d44fd
resolve contrib conflict
2015-10-27 09:43:07 -07:00
Martin Probst
af9e8a1e92
fix #1023 : getExpectedTokens() returns out of context tokens on consecutive runs
2015-10-21 17:14:43 +02:00
hkff
e051b1a0f8
Fixing BufferedTokenStream.getTokenStream() calls
2015-10-21 16:34:44 +02:00
hkff
0e09f8b659
Adding getTokenSource in BufferedTokenStream
2015-10-21 14:15:57 +02:00