Commit Graph

268 Commits

Author SHA1 Message Date
Eric Vergnaud 2a2b6acba1 links update 2016-04-26 13:27:26 +08:00
parrt cd0913712a set code string versions to 4.5.3 2016-03-30 16:21:50 -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
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 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
Peter Boyer 89f1192cb6 Fixes to Go runtime, tool 2016-01-21 19:31:30 -05:00
Peter Boyer 260ccd056b Fixed a minor bug in Go runtime 2016-01-11 00:02:46 -05:00
Peter Boyer ddd706baf2 Fix issue printing tokens from IntervalSet 2016-01-03 22:44:36 -05:00
Peter Boyer fa46c498af Export some additional interface methods, fix issues with ParseTreeWalker, generate base Listener with tool 2016-01-03 22:07:43 -05:00
Peter Boyer 0726f4c2bb Some refactoring and cleanup 2015-12-31 15:01:37 -05:00
Peter Boyer 89427b7f45 Allow disabling debug statements 2015-12-31 13:42:59 -05:00
Peter Boyer efa8676211 Go impl emits exact same debug messages as JS impl. Yessss.... 2015-12-29 16:37:17 -06:00
Peter Boyer 7798333f72 More bugs 2015-12-29 15:32:11 -06:00
Peter Boyer 56e6e6c26f More debugging 2015-12-29 12:34:26 -06:00
Peter Boyer c08a19233c More bug fixing and debugging 2015-12-28 20:31:56 -06:00
Peter Boyer 4ffb3f81b6 More minor fixes 2015-12-26 10:32:02 -06:00
Peter Boyer a2e6ee7570 Minor fixes 2015-12-25 17:52:49 -06:00
Peter Boyer d239a6aa0e Fix a few things, add some debug code to js runtime 2015-12-25 16:18:25 -06:00
Peter Boyer 1dfc764df7 Fix issues found while debugging 1 2015-12-25 16:10:02 -06:00
David Tymon a1c63234e1 JS: Added 'require' statements are missing the class names 2015-12-24 19:04:22 +11: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 7c812fb320 Various minor fixes, update of runtime-testsuite for go 2015-12-20 19:41:12 -05:00
Peter Boyer 2df791a266 LexerATNSimulator 2015-12-19 18:28:22 -05:00
Peter Boyer cd2466a9d9 ParserATNSimulator 2015-12-18 18:46:09 -05:00
Peter Boyer d158f513ab SemanticContext 2015-12-18 15:53:57 -05:00
Peter Boyer c83d8fb109 Numerous small fixes 2015-12-18 14:09:06 -05:00
Peter Boyer 54206cd853 Errors 2015-12-18 10:44:02 -05: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
Eric Vergnaud 158ef2c567 same fix as #1010 2015-10-05 21:03:37 +08:00
Eric Vergnaud 1b01140354 Useful information for code completion 2015-10-04 11:44:26 +08:00
Eric Vergnaud a3b27766fa fix type 2015-09-30 22:07:46 +08:00
Terence Parr dfe05b5f9f Merge pull request #997 from krzkaczor/master
Added proper visit function in ParseTreeVisitor
2015-09-18 12:28:43 -07:00
Krzysztof Kaczor 55fce54f4e reverted fix 2015-09-18 17:29:55 +02:00
Eric Vergnaud 986d00a5a0 missing 'new', thanks Mike 2015-09-18 22:21:17 +08:00
Krzysztof Kaczor b2d771e01c fixed bug that prevented run on nodejs 2015-09-17 21:25:37 +02:00
Krzysztof Kaczor 7a7480911c added proper visit function in ParseTreeVisitor 2015-09-17 21:21:49 +02:00
Eric Vergnaud 488f7b92ae was failing when ran in NodeJS 2015-09-14 23:34:52 +08:00
Eric Vergnaud 1e89482a64 Actually, Torben was kind enough to fix the require version from Smoothie, moved to a new framework called Honey, and to switch to the MIT license.
So dropped my version, which also required some fix for Safari, in favor of this one that I don't have to maintain
2015-09-11 16:20:29 +08:00
Eric Vergnaud 6c0b7d9c87 Improve compatibility across contexts: nodejs, web ui and web worker 2015-09-04 00:19:34 +08:00
Eric Vergnaud e7cdc2271f Largely rewritten to support usage in web worker thread without breaking compatibility with NodeJS require 2015-09-03 23:40:06 +08:00
Eric Vergnaud 7a8dc8e290 simpler and clearer 2015-07-07 23:32:44 +08:00
Terence Parr 6bd039e585 fold in history from javascript repo 2015-06-30 11:28:57 -07:00
Terence Parr c0aa3b36ca get .project into position 2015-06-30 11:26:45 -07:00
Terence Parr dac66a6fab mv files into proper position for folding into main antlr4 repo 2015-06-30 11:18:25 -07:00
parrt da818c0c5c got javascript/node tests passing; folded in all js targets 2015-06-29 18:09:36 -07:00