-
Notifications
You must be signed in to change notification settings - Fork 15
Inlines antlr4 package from upstream #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
378 commits
Select commit
Hold shift + click to select a range
983d5fe
Implement new extended Unicode escape \u{10ABCD}. Bump UUID. Add lots…
bhamiltoncx 5d2f494
rename 4.6.1 to 4.7 everywhere
parrt d9c9d84
Fixed null pointer exception for JS
3e05009
Fixes #1747
parrt 9503e94
charstreams-js
bhamiltoncx da79de6
tweak documentation about various targets
parrt e6af21a
set version to 4.7.0 for npm
parrt 8caca24
Add `new` keyword to return proper InputStreams
jimallman 961fdc9
Fix other calls to InputStream constructor.
jimallman 70762df
fix JavaScript too
ericvergnaud b0574c3
'requires' SUPERclass for Lexers in split mode, symbols/modes/channel…
venkatperi 7f7f4fd
Fix interval usage
lessmost b4d01eb
[Javascript] Add a case insensitive input stream.
bramp d4af70d
add in JavaScript case insensitive stream from bramp
parrt 1ef2efe
fix js syntax error
parrt f882705
fix js syntax error
parrt 5a7e6a3
update version number and tweak doc
parrt 695183a
update license string
enessoylu 3b6dc4d
Remove unused parameter in `_loadString`
kbsletten 9c02d30
Only visit is ctx.children is non-null
robertbrignull c58b7e8
Add an explicit return statement
robertbrignull 2c7aa86
Merge pull request #2196 from robertbrignull/visit_null_children
parrt b3a7d7e
Merge branch 'master' into master
parrt 55cb04d
fix #1955 for Javascript
ericvergnaud 8c87aef
manual edits of 4.7.1 -> 4.7.2
parrt 8274cb0
align on other runtimes
ericvergnaud 929c572
fix minor issue in deserializer
ericvergnaud 629fa30
use same hash code whether readOnly or not
ericvergnaud 42a7651
avoid hashCode == 0
ericvergnaud 482d3de
fix 2 erroneous calls, thanks @akaJes
ericvergnaud ad3a6b0
fix cache issue
7ff2017
fix toString()
232d0a4
Revert "fix cache issue"
6eadc2d
Merge branch 'miliu/fixbyhashcode' into miliu/fixjscache
fafb34d
resolve comments
0ce2432
add missed change
b3d4de0
Fix main entry point for JavaScript runtime npm package
lessmost fa271e2
update version in code to 4.8
parrt 48867e5
update javascript target to 4.3
parrt baa7cb9
refactored error directoryto use classes, const and let
carocad b301608
missing const
carocad 5d1c0aa
fix: use module.exports instead of exports to follow node best practices
carocad 533d6c0
adapted antlr4 js to use webpack for browser publishing
carocad e4f4a13
removed conditional nodejs import in favour of webpack bundle
carocad 4510259
fix: npm build is not a valid command
carocad 9712d32
refactor DFA function prototype into es6 classes
carocad d9c5ceb
use object destructuring
carocad ac45c09
refactor DFASerializer and LexerDFASerializer to ES6 classes
carocad 6e8ad3f
use const/let
carocad 1fe37e9
refactor PredPrediction and DFAState to es6 classes
carocad a9e371a
use const/let and module.exports
carocad 2710187
refactored DFA docs to JsDoc compatible
carocad 8e67dca
fix DFA serializer doc position
carocad 2b1808e
refactored PredPrediction and DFAState to JsDoc
carocad c05143e
fix: second export was overwriting the first one
carocad 72788bb
fix: cannot reasign a const var
carocad 898bf39
refactored interfaces to be es6 classes
carocad 75c4fb7
refactored Tree implementations to be es6 classes
carocad 4273aab
use const/let for better scoping
carocad a983618
use destructuring for imports
carocad cb280ec
refactored comments to be jsdoc compatible
carocad bbe9647
use const/let for better scoping
carocad 7eafe22
fix: incorrect import of invalid_alt_number
carocad 265dc80
refactored comments to be jsdoc compatible
carocad 3a202d3
refactored Trees to be a plain object to avoid "this" invocation
carocad 6f7edc8
fix: dont destructure so early to avoid circular dependency problems
carocad 4063099
fix: export ATN directly to avoid getting an empty object on (circula…
carocad 6025139
fix: no need to call RuleNode class as prototype chain is enough
carocad 0672be7
export Trees directly instead of wrapping it on an anonymous object
carocad 2b6bc66
export DFA and DiagnosticErrorListener directly instead of wrapping i…
carocad a4960b5
export RuleContext directly instead of wrapping it on an anonymous ob…
carocad bda7812
refactored antlr/tree exports to use es6 destructuring
carocad d5b01e7
removed commented out call
carocad 197d210
fix: RuleContext no longer needs object destructuring import
carocad 5353350
workaround current cyclic dependency on nodejs
carocad 9d02c44
browser support increased with babel transformation
carocad 423131e
Merge pull request #2761 from carocad/browser-support
parrt 9ad17e5
refactored ATN to be an es6 class
carocad bdc0fea
use jsdoc and const/let
carocad ff5871f
use jsdoc and const/let
carocad d882211
use jsdoc and const/let
carocad 61251ad
use module.exports
carocad 5c62f43
refactored ATNConfigSet.js to use es 6 classes
carocad ea19a21
refactored ATNDeserializationOptions.js to es 6 classes
carocad b484752
refactored ATNState.js to es 6 classes
carocad 175a305
refactored ATNType.js to be a simple object with static definitions
carocad 38fc922
refactored LexerAction.js to use es 6 classes
carocad 83c983d
refactored ATNDeserializer.js to use es6 classes
carocad fbef5f5
use const/let for better variable scoping
carocad 6308f5d
refactored ATNSimulator.js to use es6 classes
carocad 87d2e77
refactored LexerActionExecutor.js to use es6 classes
carocad 60d5877
refactored LexerATNSimulator.js to use es6 classes
carocad 5c88a21
refactored ParserATNSimulator.js to use es6 classes
carocad 97decde
refactored PredictionMode.js to use es6 classes
carocad 08fe18d
refactored SemanticContext.js.js to use es6 classes
carocad ce6ef5b
fix: no need for return on constructor
carocad a8b729e
refactored Transition.js to use es6 classes
carocad 2686f93
refactored import statements to use object destructuring and avoid re…
carocad 2466735
fix: invalid object destructuring
carocad 7fabe4c
refactored BufferedTokenStream.js to use es6 classes
carocad 912b15f
fix: dont wrap class in an object for export
carocad 83d7f89
refactored CommonTokenFactory.js to use es6 classes
carocad 379fc3a
fix: remove unnecessary return statements
carocad 66ff892
refactored CommonTokenStream.js to use es6 classes
carocad ee6273b
refactored InputStream.js to use es6 classes
carocad 7e4192a
refactored IntervalSet.js to use es6 classes
carocad adfcb9f
refactored Recognizer.js to use es6 classes
carocad 42e6c51
fix: dont return this on constructor
carocad f1553b5
todo added due to code warning
carocad c430fe3
refactored LL1Analyzer.js to use es6 classes
carocad c8c2320
refactored Parser.js to use es6 classes
carocad f276567
refactored RuleContext.js to use es6 classes
carocad d356d5e
refactored PredictionContext.js to use es6 classes
carocad b825cdb
refactored Token.js to use es6 classes
carocad e320378
refactored Utils.js to use es6 classes
carocad a944235
Copy documentation to all non-Java languages
songyang-dev ccb0943
fix: assignment to constant var
carocad 44b633c
Merge pull request #2787 from carocad/root-es6
parrt b81b1bd
fix: cyclic dependency between RuleContext.js, Trees.js and ParserRul…
carocad cc7bf86
Adds DefaultErrorStrategy to export list
75f2d15
adds IntervalSet to the export list
b3a9668
Adds LL1Analyzer to exports list
52d9b38
Fix a NPE
ericvergnaud a311f9d
Fix #2902
ericvergnaud 5dc1fc3
formatting
ericvergnaud 4445b0e
fix import issue leading to invalid algo
ericvergnaud 9149735
updated by webpack
ericvergnaud 7698db7
remove unnecessary test template
ericvergnaud 5e051c3
fix circular dependency
ericvergnaud a8fe080
try fix travis
ericvergnaud ecfc3ca
Update to version num 4.9 in code / projects
parrt 7b3cf94
update release doc
parrt 6da28df
update npm readme
ericvergnaud 46ab21a
:ambulance: fix bad import
maxence-lefebvre 115395f
rollback partially incorrect fix for #2902
ericvergnaud 9ebbb4e
Merge pull request #2996 from ericvergnaud/fix-js-perf-issue-cause-by…
ericvergnaud 166a669
upgrade ini
ericvergnaud 40eb42e
Bump version to 4.9.1
parrt 8e81b86
tweak doc
parrt 5f226c0
Fix typo
ericvergnaud e407d56
fix #3042 in JavaScript runtime
ericvergnaud bc06c78
fix typo
ericvergnaud 90e0f1f
Fix various javascript warnings and typos
ericvergnaud aa52af8
Merge pull request #3046 from ericvergnaud/update-LL1Analyzer
ericvergnaud 902e687
add jest for testing
ericvergnaud ed49d16
add test
ericvergnaud 3947954
fix typos, fixes #3075
ericvergnaud 2c7888f
Fix #3078
ericvergnaud bdc8371
align debug output on java
ericvergnaud 155b906
fix #2007
ericvergnaud dc7e944
Fix javascript intervals (#3083)
ericvergnaud fe161d8
bump version to 4.9.2
parrt 182c484
js build modified some files
parrt 2bfee5f
always trigger enter/exit rules (same as Java/C#)
ericvergnaud 826affa
Fix issue where original ATN would be damaged by IntervalSet operatio…
ericvergnaud 56e9c59
javascript performance optimization
redexp 0257215
improve debug messages
ericvergnaud b8a11da
Fix dependabot warnings
ericvergnaud 755322c
improve logs when debugging
ericvergnaud afb4491
fix issue where read-only Interval would get corrupted
ericvergnaud 5c4a62d
fix JS dependabot alerts
ericvergnaud 761b76d
Fix dependabot alert
ericvergnaud 1ad2535
Fix dependabot alert
ericvergnaud 9d1fd6a
remove yarn.lock to avoid confusion with package-lock
ericvergnaud fe3d932
Fix dependabot alert
ericvergnaud 67e2eec
replicate Java implementation
ericvergnaud e534ab4
update to 4.9.3 version number in the code
parrt d6b92fe
Fix stack overflow exception when using Lexer.type in JavaScript fixe…
KvanTTT c72f29d
latest js npm run
ericvergnaud 4b5e0d0
Add browser fs fallback
Ketler13 7fb4126
[JavaScript] Migrate from jest to jasmine
jcking 8c9e8d5
ATN serialized data: remove shifting by 2, remove UUID; fix #3515
KvanTTT 0bec802
Change string to int array for serialized ATN for JavaScript (#3568)
parrt d41b71a
[C++] Remove unused LexerATNSimulator::match_calls (#3570)
jcking 8a0d742
Use signed ints for ATN serialization not uint16, except for java (#3…
parrt 7a354d8
fix dependabot issues
ericvergnaud 5499c09
Refactor js runtime in preparation of future improvements
ericvergnaud d840396
add license prefix
ericvergnaud 34c1bb7
Prep 4.10 (#3599)
parrt c904889
Merge dev into master (#3642)
parrt 1decc47
more doc tweaks, update js json
parrt 304a4d8
Merge branch 'master' into dev
parrt 8fb7029
tweak doc, scripts for release
parrt 380fb61
Prep 4.10.1 (#3660)
parrt 2cdbd15
tweak doc
parrt 19a5daa
set version in code/doc to 4.11.0
parrt e574665
tweak js and doc
parrt 6c8c438
update to 4.11.1
parrt f743b58
update javascript to 4.11.1
parrt bd22aa4
* rename debug_list_atn_decisions to be trace_atn_sim
parrt 39f7827
Make javascript trace sim like java.
parrt 7442d8c
pre-fill result array
ericvergnaud 98b4fcb
Damn forgot to add this to the javascript update.
parrt a6db2c0
Merge commit 'c445f84aec783e75649aabb9459f1279d1ed24c1' into fix-issu…
ericvergnaud 1ce192d
Fix incorrect comparison
ericvergnaud 692c4f2
Typescript target (#4027)
ericvergnaud 24c455b
Typescript target fix missing apis (#4051)
ericvergnaud cdc1f7e
Fixes 10 year old bug that nobody ever encountered in prod... (#4038)
ericvergnaud ba83065
Javascript fix missing export (#4076)
ericvergnaud 3b49b3a
webpack for the web whilst keeping FileStream working when running in…
ericvergnaud 0a21c4f
remove unresolved dependency
ericvergnaud 29b6da3
fix beta version number
ericvergnaud eaa4ae8
Js support encoding in file stream + packaging issues (#4112)
ericvergnaud 564a889
For the TypeScript target, make sure to export CommonToken, and the m…
kaby76 17c756e
bump version to 4.12.0
parrt 75c4789
Provide JavaScript port of TokenStreamRewriter (#3560)
eirikur-grid e3c00b7
export token channel (#4143)
ericvergnaud 9a1b025
Changed Parser typings (#4149)
sharknoon 3bdf084
fix incorrect prototype (#4184)
ericvergnaud 778b98f
[Typescript] Add missing methods typing declaration (#4145)
hieunguyen2211 caf139f
do not modify String.prototype in js package (#4200)
jharris4 050eddf
Provide JavaScript port of TokenStreamRewriter (#3560)
eirikur-grid 33c6758
export token channel (#4143)
ericvergnaud e020f78
Changed Parser typings (#4149)
sharknoon eef0998
fix incorrect prototype (#4184)
ericvergnaud cbaaab5
[Typescript] Add missing methods typing declaration (#4145)
hieunguyen2211 7f42e70
do not modify String.prototype in js package (#4200)
jharris4 27d4fbf
Merge branch 'dev' into feature/performance
59c92c2
Added support for commonjs
Tarjei400 f9c330a
Added tests for commonjs and esm imports, made webpack config more co…
Tarjei400 77891e0
Fixed typo in webpack config, shortened commonjs test, to use solely …
Tarjei400 585b915
Exporting syntaxErrorsCount
be0eadf
fix warnings
ericvergnaud ab9d732
Update version in many files to 4.13.0
parrt f86ca4f
Update version in more files to 4.13.0
parrt 322ccae
Update js package-lock.json
parrt 7582db0
Fixed file paths used in `package.json#exports.types`
Andarist 6d216c7
fixed paths to use actually existing files
Andarist 8470581
Adds default targets for babel configuration
ncordon e2cf48c
Fix typing
ericvergnaud b183f46
Update 4.13.0 strings to 4.13.1
parrt ee259b4
Merge branch 'dev' into fix-dependabot-warnings
ericvergnaud b361cfc
Merge branch 'dev'
parrt 20c77c1
Update javascript with npm
parrt 35757ec
[JavaScript] Document Node.JS v16 requirement (#4355)
aloisklink 8f307a1
Export DefaultErrorStrategy (#4278)
hieunguyen2211 76daeac
Merge branch 'master' into dev
parrt f8a6f8b
fix: package.json entrypoints
Codex- cf9a2ee
Adds LICENSE of main ANTLR repo
ncordon 0144370
Moves everything inside packages/antlr4 folder
ncordon 8a9824a
Merge remote-tracking branch 'antlr4-local/javascript' into adds-antlr4
ncordon 05bcf3a
Adjusts path of antlr4 to inline the package
ncordon e3916cf
Adds clean task to antlr4
ncordon cd7c1c2
Removes linting and minification from webpack inside antlr4
ncordon b3c708e
Updates READMEs of antlr4 and antlr4-c3
ncordon 5bc0685
Adds antlr4 to eslintignore
ncordon 2373fb6
Adjust last bits for the CI to work
ncordon 11a0090
Merge remote-tracking branch 'origin/main' into adds-antlr4
ncordon 9b12fc3
Updates turbo
ncordon ec2c30e
Updates ts-jest
ncordon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.