Commit Graph

268 Commits

Author SHA1 Message Date
Eric Vergnaud d82e8921a6 Fix issue where original ATN would be damaged by IntervalSet operations. Foxes #3216 2021-03-19 00:11:03 +08:00
Eric Vergnaud 20a4d9d138 always trigger enter/exit rules (same as Java/C#) 2021-03-19 00:06:02 +08:00
parrt c0e22b99d6 js build modified some files 2021-03-11 14:36:29 -08:00
parrt cb4e59d420 bump version to 4.9.2 2021-03-11 14:10:44 -08:00
ericvergnaud 84722e9fcc
Fix javascript intervals (#3083)
* run jest tests in CI

* fix issue when merging sets of intervals

* fix CI config

* improve readability

* more tests
2021-02-14 16:51:41 +08:00
Eric Vergnaud 94f9759d14 fix #2007 2021-02-13 15:10:17 +08:00
Eric Vergnaud 26291a11d8 align debug output on java 2021-02-13 15:09:52 +08:00
Eric Vergnaud 586721462c Fix #3078 2021-02-13 15:09:34 +08:00
Eric Vergnaud e99363ac1a fix typos, fixes #3075 2021-02-13 02:30:50 +08:00
Eric Vergnaud 25196001d7 add test 2021-02-13 02:29:55 +08:00
Eric Vergnaud 64d49cc4d8 add jest for testing 2021-02-13 02:29:35 +08:00
ericvergnaud b050ac43de
Merge pull request #3046 from ericvergnaud/update-LL1Analyzer
Update LL1 analyzer in C#, Python, JavaScript, Cpp and Swift runtimes, aligning on the Java runtime
Fixes #3042
2021-01-24 11:12:18 +08:00
Eric Vergnaud 954649d5aa Fix various javascript warnings and typos 2021-01-23 20:39:53 +08:00
Eric Vergnaud e8dfc30f91 fix typo 2021-01-23 18:18:30 +08:00
Eric Vergnaud 329f1301ea fix #3042 in JavaScript runtime 2021-01-23 17:32:06 +08:00
Eric Vergnaud 5dce78c87a Fix typo 2021-01-21 17:23:44 +08:00
parrt 464bcbc32d tweak doc 2021-01-05 13:20:45 -08:00
parrt eaa976e425 Bump version to 4.9.1 2021-01-03 10:13:19 -08:00
Eric Vergnaud c4d0ace5f3 upgrade ini 2020-12-13 09:56:29 +08:00
ericvergnaud 0ad70569b2
Merge pull request #2996 from ericvergnaud/fix-js-perf-issue-cause-by-incorrect-fix
rollback partially incorrect fix for #2902
2020-12-06 22:25:15 +08:00
Eric Vergnaud 74b8bb780d rollback partially incorrect fix for #2902 2020-12-06 15:49:29 +08:00
maxence-lefebvre 4fcec7348d
🚑 fix bad import 2020-12-01 17:56:44 +01:00
Eric Vergnaud 87515f2864 update npm readme 2020-11-27 08:01:52 +08:00
parrt 954c5fab1c update release doc 2020-11-24 13:47:49 -08:00
parrt d27e6cad09 Update to version num 4.9 in code / projects 2020-11-24 11:42:42 -08:00
Eric Vergnaud 215d57abff try fix travis 2020-10-03 19:57:57 +08:00
Eric Vergnaud eafb3d8ea6 fix circular dependency 2020-10-03 17:18:25 +08:00
Eric Vergnaud 0bd0a05f24 remove unnecessary test template 2020-10-03 17:17:56 +08:00
Eric Vergnaud bec37fc0e5 updated by webpack 2020-10-03 14:06:27 +08:00
Eric Vergnaud 48f22a9a1e fix import issue leading to invalid algo 2020-10-03 14:05:05 +08:00
Eric Vergnaud 3451dccd6c formatting 2020-10-03 14:04:11 +08:00
Eric Vergnaud ef029cef40 Fix #2902 2020-09-13 20:53:49 +08:00
Eric Vergnaud 2bfce77e91 Fix a NPE 2020-07-12 22:12:02 +08:00
Shan M e744435463
Adds LL1Analyzer to exports list 2020-07-01 12:10:47 +03:00
Shan M 795cd3b682
adds IntervalSet to the export list 2020-07-01 12:01:44 +03:00
Shan M f780421da7
Adds DefaultErrorStrategy to export list 2020-07-01 12:00:41 +03:00
Camilo Roca 26715ec6df fix: cyclic dependency between RuleContext.js, Trees.js and ParserRuleContext.js
check for RuleNode instead of RuleContext since that it the only implementation (RuleNode -> RuleContext -> ParserRuleContext)
2020-03-26 21:48:20 +01:00
Terence Parr a4c66dc863
Merge pull request #2787 from carocad/root-es6
Javascript: migrate prototypical root modules to ES6
2020-03-26 10:33:27 -07:00
Camilo Roca 57b65a1c92 fix: assignment to constant var 2020-03-20 13:36:56 +01:00
Song Yang 575271020f Copy documentation to all non-Java languages 2020-03-17 16:03:29 -04:00
Camilo Roca dadd69ef97 refactored Utils.js to use es6 classes
use const/let for better scoping
use jsdoc
2020-03-16 00:24:56 +01:00
Camilo Roca 5b607b34ba refactored Token.js to use es6 classes
use const/let for better scoping
use jsdoc
2020-03-16 00:16:11 +01:00
Camilo Roca 5baa2326ad refactored PredictionContext.js to use es6 classes
use const/let for better scoping
use jsdoc
2020-03-16 00:08:55 +01:00
Camilo Roca ee9474b194 refactored RuleContext.js to use es6 classes
refactored ParserRuleContext.js to use es6 classes
fix: dont wrap export in object
use const/let for better scoping
use jsdoc
2020-03-15 23:55:05 +01:00
Camilo Roca 4de9e80109 refactored Parser.js to use es6 classes
fix: dont wrap export in object
use const/let for better scoping
use jsdoc
2020-03-15 23:38:44 +01:00
Camilo Roca 94ee7cfbf9 refactored LL1Analyzer.js to use es6 classes
fix: dont wrap export in object
use const/let for better scoping
use jsdoc
2020-03-15 23:21:44 +01:00
Camilo Roca ba6b0807c9 todo added due to code warning 2020-03-15 23:14:37 +01:00
Camilo Roca fd8548acab fix: dont return this on constructor 2020-03-15 23:14:11 +01:00
Camilo Roca 24ae4274a0 refactored Recognizer.js to use es6 classes
refactored Lexer.js to use es6 classes
fix: dont wrap class in object for exporting
use const/let for better scoping
use jsdoc
2020-03-15 22:46:08 +01:00
Camilo Roca a3c380d7d4 refactored IntervalSet.js to use es6 classes
use const/let for better scoping
2020-03-15 16:29:28 +01:00