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
Eric Vergnaud
e850b4d97f
use hashCode instead of hashString - Lexer seems to work but not Parser
2016-12-03 01:13:24 +08:00
Eric Vergnaud
682e0341c1
fix a typo in optimisation code
2016-12-01 22:23:53 +08:00
Eric Vergnaud
3cbc456355
cleanup test files
2016-12-01 22:23:26 +08:00
Eric Vergnaud
f9d79dfcb2
implement LR optimisation in JavaScript + align naming + DFAState ctor bugs
2016-11-30 01:29:18 +08:00
parrt
9d3415ed8a
Merge branch 'master' of git://github.com/ghosthope/antlr4 into ghosthope-master
2016-11-25 12:28:14 -08:00
parrt
ace7758f6e
Fixes #1280
2016-11-22 12:49:24 -08:00
Eric Vergnaud
c50b10f865
clarify javascript visitor code
2016-11-20 14:10:05 +08:00
parrt
ffaedd209d
Set version in code to 4.6.
2016-11-06 11:21:06 -08:00
parrt
6d022379bc
Pull in parrt's branch 'model-updates-for-new-targets' which appears to have freshened some non Go stuff as well. Simplify Go filename construction.
2016-11-05 08:48:37 -07:00
parrt
285c7fca6c
resolve contribs conflict
2016-10-13 16:21:00 -07:00
Peter Boyer
2444386091
Remove JavaScript PORT_DEBUG, re-enable runtime tests for other language targets ( #69 )
...
* Re-enable runtime tests for other language targets
* Fix typo in js code
* Remove PORT_DEBUG statements
* Fix missing
* Fix testAltNum
2016-10-13 17:06:22 -04:00
Peter Boyer
42347c078b
Fix merge failure
2016-10-12 09:53:43 -04:00
Peter Boyer
60662c4b70
Fix remaining tests ( #64 )
...
* Fix pred context typo
* Adjust array lengths
* PositionAdjustLexer test fix first steps
* allow virtual method calls from Lexer
* Hopefully fix issues with dup namedActions
* Make parser members
* Fix testParserProperty
* Fix LeftRecursion test failures
2016-10-12 09:49:42 -04:00
Christian Gudrian
75dd652d7a
fixed visitAtom implementation
...
This implementation somehow got lost in rebasing.
2016-10-07 20:37:38 +02:00
Christian Gudrian
cb590334bb
the visit methods now return a value
2016-10-06 22:52:19 +02:00
Christian Gudrian
0396561520
made visitAtom work for terminal nodes
2016-10-06 22:52:19 +02:00
ghosthope
9766dff5d8
Javascript performance. Was add new string.hash function - murmurhash3_gc.js ( https://github.com/garycourt/murmurhash-js/blob/master/murmurhash3_gc.js ). Performance of the function increased in two times
2016-09-23 16:57:40 +03:00
Christian Gudrian
46df58d5d7
The JavaScript ParseTreeVisitor now implements a depth-first traversal by default.
2016-09-22 08:28:11 +02:00
Eric Vergnaud
0fed0b0684
Following #1218 , ensure consistency of ATNConfigSet hashing strategy in JavaScript
2016-06-28 10:45:05 +02:00
Peter Boyer
97bf8d63f8
TODO
2016-06-17 19:21:11 -04:00
Peter Boyer
c877bee8f1
PORT_DEBUG fix
2016-06-17 19:18:46 -04:00