parrt
38a95da397
manual edits of 4.7.1 -> 4.7.2
2018-12-17 14:32:39 -08:00
Eric Vergnaud
77c830e6e1
fix #1955 for Javascript
2018-11-18 19:44:33 +08:00
Terence Parr
25b30623c0
Merge branch 'master' into master
2018-11-08 13:46:09 -08:00
Terence Parr
fc01366f35
Merge pull request #2196 from robertbrignull/visit_null_children
...
JavaScript parse tree visitor: check if ctx.children is non-null in visitChildren
2018-07-24 15:54:06 -07:00
Robert
87725e65c9
Add an explicit return statement
2018-01-05 11:26:31 +00:00
Robert Brignull
dd3af945fd
Only visit is ctx.children is non-null
2018-01-03 12:49:52 +00:00
Kyle Sletten
a7f3efb7eb
Remove unused parameter in `_loadString`
...
The usage of this method was removed in commit 51edf3cece
, but the parameter remained.
2017-12-20 11:39:57 -07:00
enessoylu
0668b53083
update license string
2017-12-13 02:14:57 -05:00
parrt
763a1242b7
update version number and tweak doc
2017-12-08 12:47:11 -08:00
zqlu.cn
88a7580b78
Fix interval usage
...
For JavaScript runtime, Interval class constructor assume start and stop
to be number.
2017-11-24 16:37:40 +08:00
Venkat Peri
e01af374d2
'requires' SUPERclass for Lexers in split mode, symbols/modes/channels available on Lexer prototype for use in lexer actions (this.SOME_MODE) like in Java actions, Utils.escapeWhiteSpace uses regex for global replace (was replacing only first occurnce of \n etc).
2017-07-22 18:11:37 -04:00
Eric Vergnaud
0166ba95ac
fix JavaScript too
2017-06-25 13:44:24 +08:00
Jim Allman
892aa4a376
Fix other calls to InputStream constructor.
2017-05-11 17:08:24 -04:00
Jim Allman
5e648f0867
Add `new` keyword to return proper InputStreams
...
Currently the JS runtime sometimes returns (and mangles) the global
`window` object instead of a proper InputStream. This is prevented by
using the `new` keyword in all cases.
2017-05-11 16:27:42 -04:00
parrt
a4622ec8dc
set version to 4.7.0 for npm
2017-03-30 14:40:58 -07:00
parrt
b5648f405b
tweak documentation about various targets
2017-03-30 10:44:28 -07:00
Ben Hamilton
f72e22550c
charstreams-js
2017-03-22 11:03:16 -07:00
parrt
1b0a8aa2e8
Fixes #1747
2017-03-14 10:35:22 -07:00
harry-tallbelt
2a118e284f
Fixed null pointer exception for JS
2017-03-08 15:00:14 +02:00
parrt
6215f18ec3
rename 4.6.1 to 4.7 everywhere
2017-02-23 14:48:58 -08:00
Ben Hamilton
fd4246cf3f
Implement new extended Unicode escape \u{10ABCD}. Bump UUID. Add lots more tests.
2017-02-23 09:39:44 -08:00
Ben Hamilton
b190b6eca6
MAX_CHAR_VALUE to 0x10FFFF
2017-02-16 09:46:09 -08:00
Ben Hamilton
51edf3cece
Fix InputStream.getText() when input contains Unicode values > U+FFFF
2017-02-10 11:41:00 -08:00
Ben Hamilton
32a3a95da1
Import fromcodepoint.js
2017-02-10 11:40:55 -08:00
Terence Parr
182f3c4647
Merge pull request #1628 from bhamiltoncx/js-string-codepointat-polyfill
...
JavaScript runtime: Optionally support decoding UTF-16 sequences to Unicode code points
2017-01-31 10:26:29 -08:00
Ben Hamilton
38ba75e96e
Inline test instead of using anonymous function
2017-01-30 13:52:14 -08:00
Eric Vergnaud
d5b88cda71
missing js export
2017-01-31 02:53:58 +08:00
Ben Hamilton
e0104885e8
Use polyfill for JS unicode code point reading
2017-01-30 09:49:20 -08:00
Ben Hamilton
ce6ce0f45d
Polyfill for String.codePointAt for ECMAScript 5.1 browsers
2017-01-30 09:49:03 -08:00
Terence Parr
97aaddc006
Merge branch 'master' into fix-missing-variable-declarations
2017-01-24 09:54:05 -08:00
Eric Vergnaud
f02d8c1a4b
fix #1584
2017-01-19 21:44:56 +08:00
robert
a053d908fb
fix missing variable declarations
2017-01-11 15:39:04 +00:00
Terence Parr
040e40ec58
Merge pull request #1565 from ericvergnaud/fix-javascript-typo
...
fix typo in javascript visitor
2017-01-03 17:05:50 -08:00
Eric Vergnaud
d5dcfc42c4
fix an issue where loading antlr from an IE web worker would fail
2017-01-04 01:56:02 +08:00
Eric Vergnaud
5bc40faebb
fix typo
2016-12-29 23:24:09 +08:00
parrt
2629433830
bump version to 4.6.1 in all files.
2016-12-28 12:03:43 -08:00
Sam Harwell
24b20e236f
Remove redundant isExpectedToken check
...
We know by the time this check was reached that neither EPSILON nor the LL(1)
symbol are in the lookahead set from the current state. Since EPSILON is not
included, the state cannot see to the end of the rule and thus nextTokens
contains the complete set of valid LL(1) symbols from the current state. It is
therefore impossible for the LL(1) symbol to be "expected" when considering
lookahead with full context.
2016-12-27 17:21:25 -06:00
Sam Harwell
8b21cc3dfb
Fix DefaultErrorStrategy.sync handling of end of rule
...
This change updates the default sync() strategy to match the strategy used
for selecting an alternative when prediction leaves the decision rule prior
to reaching a syntax error.
Closes #1545
2016-12-23 16:28:46 -06:00
Eric Vergnaud
14f0c7a663
also published to npm
2016-12-17 00:03:03 +08:00
Eric Vergnaud
caa581a9e0
success!
2016-12-12 23:52:09 +08:00
Renata Hodovan
3a4c8d8bc6
Implement the fix in #1471 for JavaScript target.
2016-12-11 00:59:24 +01:00
parrt
2c99f187a0
make it read "Copyright (c) 2012-2016 The ANTLR Project"
2016-12-08 11:43:06 -08:00
parrt
1b1a9862c4
contributors->authors
2016-12-08 11:43:06 -08:00
parrt
61e8eba4fc
fix typo
2016-12-08 11:43:06 -08:00
parrt
adadf567cc
add copyrights on js
2016-12-08 11:40:30 -08:00
parrt
0b7c7f1333
update copyrights on js
2016-12-08 11:40:30 -08:00
parrt
efc3f82f38
rm redundant license files
2016-12-08 11:40:30 -08:00
Eric Vergnaud
5ce735f56f
cleanup
2016-12-04 18:58:49 +08:00
Eric Vergnaud
67a93b3f36
refine debug info
2016-12-04 16:51:46 +08:00
Eric Vergnaud
7332c1eb02
fix various hashing issues
2016-12-04 14:23:30 +08:00