Commit Graph

243 Commits

Author SHA1 Message Date
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
Camilo Roca 23351cadc4 refactored InputStream.js to use es6 classes
refactored FileStream.js to use es6 classes
fix: dont wrap class in an object for export
use const for better scoping
use jsdoc
2020-03-15 16:25:30 +01:00
Camilo Roca 181c44fb11 refactored CommonTokenStream.js to use es6 classes
fix: dont wrap class in an object for export
fix: annotate adjustSeekIndex with Number type to avoid warning
use const for better scoping
use jsdoc
2020-03-15 16:10:50 +01:00
Camilo Roca 5f6b7de72d fix: remove unnecessary return statements 2020-03-15 16:04:28 +01:00
Camilo Roca b2473f7564 refactored CommonTokenFactory.js to use es6 classes
fix: dont wrap class in an object for export
use const for better scoping
use jsdoc
2020-03-15 16:03:41 +01:00
Camilo Roca 2e139f8d08 fix: dont wrap class in an object for export
use jsdoc
2020-03-15 15:59:09 +01:00
Camilo Roca 4752ecf521 refactored BufferedTokenStream.js to use es6 classes
fix: dont wrap class in an object for export
use const/let for better scoping
use jsdoc
2020-03-15 15:55:15 +01:00
Camilo Roca 2988f32c3c fix: invalid object destructuring 2020-03-07 14:03:59 +01:00
Camilo Roca 51bcf5ffad refactored import statements to use object destructuring and avoid repetition 2020-03-07 13:59:30 +01:00
Camilo Roca ae8602a463 refactored Transition.js to use es6 classes
use const for better scoping
2020-03-07 13:45:54 +01:00
Camilo Roca 6a38ae5e3d fix: no need for return on constructor 2020-03-07 13:38:30 +01:00
Camilo Roca 6ebe0d1317 refactored SemanticContext.js.js to use es6 classes
use const/let for better scoping
use object destructuring
use jsdoc
2020-03-07 13:35:30 +01:00
Camilo Roca 21538ebb59 refactored PredictionMode.js to use es6 classes
use const/let for better scoping
use object destructuring
fix: dont wrap class in object for export
2020-03-07 13:16:42 +01:00
Camilo Roca 7f271a1fc0 refactored ParserATNSimulator.js to use es6 classes
use const/let for better scoping
use object destructuring
fix: dont wrap class in object for export
2020-03-06 22:38:11 +01:00
Camilo Roca d1dce9e700 refactored LexerATNSimulator.js to use es6 classes
use const/let for better scoping
fix: dont wrap class in object for export
2020-03-06 22:12:49 +01:00
Camilo Roca 9aeac6d4f4 refactored LexerActionExecutor.js to use es6 classes
use const for better scoping
fix: dont wrap class in object for export
2020-03-06 20:05:05 +01:00
Camilo Roca 01c5dca26a refactored ATNSimulator.js to use es6 classes
use const for better scoping
fix: dont wrap class in object for export
2020-03-06 19:54:10 +01:00
Camilo Roca 43f896d6dc use const/let for better variable scoping 2020-03-06 19:49:10 +01:00
Camilo Roca 4f8527e9ee refactored ATNDeserializer.js to use es6 classes
fix: dont wrap the class in an object for export
2020-03-06 19:33:38 +01:00
Camilo Roca d61e4d5049 refactored LexerAction.js to use es 6 classes
use jsdoc
use module.exports
2020-03-06 19:29:23 +01:00
Camilo Roca 44331c067e refactored ATNType.js to be a simple object with static definitions 2020-03-06 19:14:24 +01:00
Camilo Roca 78afe57b7d refactored ATNState.js to es 6 classes
use module.exports
use jsdoc
2020-03-06 19:12:09 +01:00
Camilo Roca 430b7c1917 refactored ATNDeserializationOptions.js to es 6 classes
fix: dont wrap class in an object
refactored imports accordingly
2020-03-06 18:59:59 +01:00
Camilo Roca 7324e094b1 refactored ATNConfigSet.js to use es 6 classes
use module.exports
use const/let
use jsdoc
2020-03-06 18:46:34 +01:00
Camilo Roca 2246528ca6 use module.exports
fix: put the documentation on the method, not on the import
fix: move Token import to the top
2020-03-06 18:36:33 +01:00
Camilo Roca 1b440d364a use jsdoc and const/let 2020-03-06 18:33:37 +01:00