Commit Graph

7549 Commits

Author SHA1 Message Date
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
Camilo Roca 8f1b2e5eb9 use jsdoc and const/let 2020-03-06 18:24:57 +01:00
Camilo Roca 15720d1e33 use jsdoc and const/let 2020-03-06 18:18:49 +01:00
Camilo Roca e7b935e7e2 refactored ATN to be an es6 class 2020-03-06 18:10:34 +01:00
Terence Parr 225249fdae
Merge pull request #2761 from carocad/browser-support
Javascript: browser support increased with babel transformation
2020-02-25 09:35:36 -08:00
Terence Parr 38b1b9ac7f
Merge pull request #2749 from carocad/tree-classes
Javascript: migrate prototypical Tree objects to es6 classes
2020-02-23 10:12:14 -08:00
Camilo Roca 10bbcb9033 browser support increased with babel transformation 2020-02-23 19:09:26 +01:00
Terence Parr bb66444622
Merge pull request #2754 from StochasticTinkr/fix-gramamr-typo
replace gramamr with grammar
2020-02-23 10:01:48 -08:00
Camilo Roca d95b3270c4 workaround current cyclic dependency on nodejs 2020-02-23 14:12:08 +01:00
Camilo Roca c8ae1a89a2 refactored BaseNodeTest to use es6 classes and const/let 2020-02-23 13:09:36 +01:00
Camilo Roca 5885aa4705 fix: RuleContext no longer needs object destructuring import 2020-02-23 13:09:36 +01:00
Camilo Roca 46ceb654f7 removed commented out call 2020-02-23 13:09:36 +01:00
Camilo Roca 1c946ce605 refactored antlr/tree exports to use es6 destructuring 2020-02-23 13:09:36 +01:00
Camilo Roca 6764f53024 export RuleContext directly instead of wrapping it on an anonymous object 2020-02-23 13:09:36 +01:00
Camilo Roca 20cbfc5a0a export DFA and DiagnosticErrorListener directly instead of wrapping it on an anonymous object 2020-02-23 13:09:36 +01:00
Camilo Roca 96c2eb6a51 export Trees directly instead of wrapping it on an anonymous object 2020-02-23 13:09:36 +01:00
Camilo Roca a3d2ca7ef5 fix: removed unnecessary "interface" initialization on test suite 2020-02-23 13:09:36 +01:00
Camilo Roca 577a9b82bc fix: no need to call RuleNode class as prototype chain is enough 2020-02-23 13:08:39 +01:00
Camilo Roca 5e42c49ced fix: export ATN directly to avoid getting an empty object on (circular) imports 2020-02-23 13:08:39 +01:00
Camilo Roca 1eafbf9286 fix: dont destructure so early to avoid circular dependency problems 2020-02-23 13:08:39 +01:00
Camilo Roca 66c652142c refactored Trees to be a plain object to avoid "this" invocation 2020-02-23 13:08:39 +01:00
Camilo Roca af45a02d1e refactored comments to be jsdoc compatible 2020-02-23 13:08:39 +01:00
Camilo Roca edf24eab3f fix: incorrect import of invalid_alt_number
removed unused RuleNode import
2020-02-23 13:08:39 +01:00
Camilo Roca 79d2c1c163 use const/let for better scoping
use object destructuring on import
2020-02-23 13:08:39 +01:00
Camilo Roca 4a7820aa4b refactored comments to be jsdoc compatible 2020-02-23 13:08:39 +01:00
Camilo Roca 6cc2f082fb use destructuring for imports
use module.exports with object literal for exports
2020-02-23 13:08:39 +01:00
Camilo Roca e790ddb4ba use const/let for better scoping
removed unused Utils import
2020-02-23 13:08:39 +01:00
Camilo Roca 32baf10944 refactored Tree implementations to be es6 classes 2020-02-23 13:08:39 +01:00
Camilo Roca 9d997438f9 refactored interfaces to be es6 classes 2020-02-23 13:08:39 +01:00
Terence Parr 2d9f45d9bf
Merge pull request #2755 from ericvergnaud/drop-browser-tests
Drop browser tests
2020-02-22 10:06:17 -08:00
Eric Vergnaud bff9629414 add missing tests 2020-02-22 12:00:11 +08:00
Eric Vergnaud 2eb728eafb drop selenium and jetty dependencies 2020-02-22 11:39:17 +08:00
Daniel Pitts 0d73fc28e9 replace gramamr with grammar 2020-02-21 19:04:10 -08:00
Daniel Pitts ccc79bb883 Add myself to the contributors. 2020-02-21 19:02:56 -08:00
Eric Vergnaud ddf38ec88f fix failing tests 2020-02-22 10:35:42 +08:00
Eric Vergnaud 95521b7553 Move node tests up to simplify 2020-02-22 10:09:44 +08:00
Eric Vergnaud 653cb54bb9 drop obsolete browser tests, selenium is flaky, these tests cannot run in our CI, everybody uses some packaging, next official js runtime will be pre-packaged
overall not worth the maintenance effort anymore
2020-02-22 10:05:34 +08:00
Terence Parr db1c09c6d2
Merge pull request #2744 from julibert/master
Fix CMake packaging
2020-02-14 08:25:51 -08:00
Terence Parr 530c5facc7
Merge pull request #2746 from carocad/dfa-classes
Javascript: migrate prototypical DFA objects to es6 classes
2020-02-12 08:53:22 -08:00
Camilo Roca 6dd86eb960 fix: cannot reasign a const var 2020-02-10 22:23:54 +01:00
Camilo Roca d6975d60b1 fix: second export was overwriting the first one 2020-02-10 22:22:12 +01:00
Camilo Roca 2d8e1b60d1 refactored PredPrediction and DFAState to JsDoc 2020-02-10 22:13:19 +01:00
Camilo Roca 2a294b8a60 fix DFA serializer doc position 2020-02-10 22:07:58 +01:00
Camilo Roca 68730a8288 refactored DFA docs to JsDoc compatible 2020-02-10 22:07:21 +01:00
Camilo Roca 8c1730f687 use const/let and module.exports 2020-02-10 22:01:04 +01:00
Camilo Roca 116dbca78a refactor PredPrediction and DFAState to es6 classes 2020-02-10 21:58:44 +01:00
Camilo Roca 82d51aee99 use const/let
use module exports instead of exports
2020-02-10 21:56:40 +01:00
Camilo Roca 772286cf00 refactor DFASerializer and LexerDFASerializer to ES6 classes 2020-02-10 21:54:23 +01:00
Camilo Roca e5910c3019 use object destructuring 2020-02-10 21:52:26 +01:00