Ben Hamilton
499e44b03a
Pass through source name
2017-01-30 14:16:33 -08:00
Ben Hamilton
38ba75e96e
Inline test instead of using anonymous function
2017-01-30 13:52:14 -08:00
Ivan Kochurkin
7b8ba3550b
channelNames support in LexerInterpreter (C#, C++, Java, Swift).
2017-01-31 00:34:10 +03:00
Ivan Kochurkin
8359a998b6
Updated generated files.
2017-01-31 00:34:10 +03:00
Ivan Kochurkin
c3d96eb5d7
Added channelNames to all runtimes.
2017-01-31 00:32:21 +03:00
Terence Parr
fb22b1dbcb
Merge pull request #1639 from ericvergnaud/missing-js-export
...
missing js export
2017-01-30 13:26:18 -08:00
Terence Parr
e8f45783cd
Merge pull request #1630 from bhamiltoncx/python-runtime-test-utf-8
...
Use UTF-8 for Python runtime tests, allow specifying error handling
2017-01-30 11:32:55 -08:00
Terence Parr
444d35ecde
Merge pull request #1632 from bhamiltoncx/csharp-runtime-unicode
...
New C# runtime class CodePointCharStream
2017-01-30 11:27:16 -08:00
Eric Vergnaud
d5b88cda71
missing js export
2017-01-31 02:53:58 +08:00
Ben Hamilton
0f52b7c0d9
CharStreams
2017-01-30 10:09:56 -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
Ben Hamilton
d9d4d8c6c4
Restore Python3 FileStream to ascii/strict
2017-01-30 08:49:32 -08:00
Ben Hamilton
2defcc3e1f
Change default encoding back to 'ascii'. Specify encoding=utf-8 and errors=replace in Python2/Python3 test templates.
2017-01-30 08:45:48 -08:00
Ben Hamilton
99ed4b6de6
Python StdinStream/FileStream -> UTF-8
2017-01-30 07:32:30 -08:00
Terence Parr
e7d6331632
Merge pull request #1631 from bhamiltoncx/remove-unused-csharp-method
...
Remove unused C# runtime method Utils.ToCharArray
2017-01-29 13:07:57 -08:00
parrt
2fbd297063
open visibility slightly so we can override to fix bugs etc...
2017-01-29 12:58:25 -08:00
Terence Parr
bd8a367398
Merge pull request #1627 from bhamiltoncx/utf8-code-point-decoder
...
New class UTF8CodePointDecoder
2017-01-29 12:54:58 -08:00
parrt
3c924384eb
add comment
2017-01-29 12:51:31 -08:00
Terence Parr
508d2f988f
Merge pull request #1626 from bhamiltoncx/new-code-point-char-stream
...
New class CodePointCharStream (alternative to ANTLRInputStream)
2017-01-29 12:50:44 -08:00
parrt
03470b0083
add comment
2017-01-29 10:41:01 -08:00
Terence Parr
37adfd4e30
Merge pull request #1625 from bhamiltoncx/integer-list-unicode
...
New method IntegerList.toCharArray()
2017-01-29 10:38:29 -08:00
Terence Parr
bf4fa40ff9
Merge pull request #1606 from hanjoes/spm
...
Tweak Repo to use SwiftPackageManager.
2017-01-29 10:31:53 -08:00
Dong Xie
95db50d540
[dotnet] target: use project reference in json instead of nupkg; fix for tests
2017-01-27 15:16:28 +00:00
Ben Hamilton
52e5bcd783
Unicode code point support for C# runtime
2017-01-26 11:41:42 -08:00
Ben Hamilton
5391d2a830
Remove unused C# runtime method Utils.ToCharArray
2017-01-26 10:54:42 -08:00
Ben Hamilton
558aa7b011
UTF8CodePointDecoder
2017-01-24 15:23:03 -08:00
Ben Hamilton
212a948656
CodePointCharStream
2017-01-24 13:12:28 -08:00
Ben Hamilton
3b25e076fc
Restore null check
2017-01-24 11:39:05 -08:00
Ben Hamilton
bbf8476c8e
New method IntegerList.toCharArray()
2017-01-24 11:30:50 -08:00
Terence Parr
97aaddc006
Merge branch 'master' into fix-missing-variable-declarations
2017-01-24 09:54:05 -08:00
Dong Xie
4c4fdc0f83
Merge remote-tracking branch 'upstream/master' into dotnetcore
2017-01-24 16:23:31 +00:00
Dong Xie
8a08a6ed56
[csharp] dotnet test files added, test passing
2017-01-24 16:21:13 +00:00
bekket mcclane
4f3785a29e
Merge branch 'master' into master
2017-01-23 17:52:59 +08:00
Terence Parr
449a32d4ae
Merge pull request #1603 from marcelo-rocha/fix-parse-tree-property
...
Fix parse tree property
2017-01-22 12:43:24 -08:00
Terence Parr
7f8890bc3c
Merge pull request #1596 from willfaught/format
...
Format Go runtime files
2017-01-22 12:43:00 -08:00
Terence Parr
e1c51d367e
Merge pull request #1607 from mike-lischke/master
...
Some deployment changes because of license file changes.
2017-01-22 12:42:33 -08:00
Dong Xie
9e590c08b7
[csharp] able to compile with dotnet cli under Linux
...
1, moved xproj file into Antlr4.Runtime sub-folder to keep convention
2, removed two cs files that no longer needed
3, fill in missing using directives
2017-01-20 14:16:09 +00:00
Dong Xie
5d03880079
Merge remote-tracking branch 'upstream/master' into dotnetcore
2017-01-19 16:13:03 +00:00
Eric Vergnaud
f02d8c1a4b
fix #1584
2017-01-19 21:44:56 +08:00
mshockwave
d733016fd4
fix wrong antlr4cpp runtime include path
2017-01-18 15:09:10 +08:00
Mike Lischke
82d0e8f86a
Merge branch 'master_upstream'
2017-01-16 13:15:54 +01:00
Mike Lischke
8b43f3f7e0
Some deployment changes because of license file changes.
2017-01-16 13:14:40 +01:00
Hanzhou Shi
7c24680e3c
Reset fetchedEOF in BufferedTokenStream after setTokenSource is called. Fixes #1584 .
2017-01-16 00:39:01 -08:00
Hanzhou Shi
893ed8449b
Tweak xcodeproj
2017-01-16 00:23:26 -08:00
Hanzhou Shi
8fd99fe8d9
Adding Package.swift for SPM integration
2017-01-16 00:23:26 -08:00
Hanzhou Shi
139225f76c
convert documentation to Swift style
2017-01-16 00:23:26 -08:00
Hanzhou Shi
ee82046201
Reorg Swift runtime file structure.
2017-01-16 00:23:25 -08:00
Marcelo Rocha
d53e4f248d
fix incorrect std::map API
2017-01-13 14:42:34 -03:00
robert
a053d908fb
fix missing variable declarations
2017-01-11 15:39:04 +00:00
Will Faught
2dd7eb1164
Format
2017-01-11 01:48:55 -08:00
Terence Parr
58b7b71731
Merge pull request #1583 from willfaught/copyright
...
Use single-line comments for copyright
2017-01-08 07:02:05 -08:00
Terence Parr
01ff377d25
Merge pull request #1587 from sharwell/document-shift
...
Document the value shifting used in the serialized ATN
2017-01-07 09:49:00 -08:00
Sam Harwell
633a2df710
Mark BufferedTokenStream.reset as deprecated to avoid confusion
...
See #895
2017-01-07 10:45:08 -06:00
Sam Harwell
ff2b2b8ba6
Document the value shifting used in the serialized ATN
...
Fixes #1270
2017-01-07 09:38:45 -06:00
Sam Harwell
bcde6f923a
Reset BufferedTokenStream.fetchedEOF when calling setTokenSource
...
Fixes #1584
2017-01-07 09:31:11 -06:00
Will Faught
e093d410eb
Use single-line comments for copyright
2017-01-06 23:49:34 -08: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
Terence Parr
b57843d983
Merge pull request #1546 from sharwell/fix-1545
...
Fix multiple problems with optional block bypass at end of rule
2016-12-27 21:47:12 -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
Terence Parr
644478a015
Merge pull request #1558 from mike-lischke/master
...
No static libs anymore for Windows C++ runtime.
2016-12-27 13:00:01 -08:00
Terence Parr
f79a34aa3a
Merge pull request #1557 from mike-lischke/LR-loop-fix
...
Lr loop fix
2016-12-27 12:57:26 -08:00
Mike Lischke
189d390481
Merge branch 'master_upstream'
2016-12-27 13:12:21 +01:00
Mike Lischke
ad31b44009
Removed static libraries from deployment script (Windows).
...
Static libs are huge, so they put quite some burden on download management. They are easy to create from source, however.
2016-12-27 13:11:54 +01:00
Terence Parr
1c987e77ea
Merge pull request #1548 from adrpo/FixMsys2MinGWBuild
...
adapt code to compile with msys2 mingw compiler
2016-12-25 09:03:04 -08:00
Ivan Kochurkin
03a75a5ce6
fix error "'CommonToken' object has no attribute 'stopIndex' in Python{2|3}" #1529 .
2016-12-24 18:22:48 +03:00
Adrian Pop
8ab5f02f7d
adapt code to compile with msys2 mingw compiler
...
- add required extra flags to the C++ compiler in CMakeLists.txt
- guard some code with _MSC_VER instead of WIN32
2016-12-24 01:38:28 +01: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
parrt
df142794f6
add blank line after copyright. Fixes #1539
2016-12-23 09:50:16 -08:00
Terence Parr
58600d29b8
Merge pull request #1542 from akosthekiss/fix-doc-hidden-tokens-right
...
Fix documentation of getHiddenTokensToRight in BufferedTokenStream
2016-12-22 09:20:33 -08:00
Terence Parr
abf16b08b9
Merge pull request #1541 from ericvergnaud/fix-#1538
...
Fix a Python 2 typo
2016-12-22 09:19:58 -08:00
Dong Xie
0123d874e6
Merge remote-tracking branch 'upstream/master' into dotnetcore
2016-12-22 15:24:25 +00:00
Akos Kiss
cbac45e6ed
Fix documentation of getHiddenTokensToRight in BufferedTokenStream
2016-12-22 11:24:26 +01:00
Eric Vergnaud
4125fbad8a
grr...
2016-12-21 19:28:38 +08:00
Mike Lischke
218ae73608
Make return states the same size as the parent array.
...
Both arrays have always the same size and after reducing common parents in a prediction context optimization we also have to update the states array.
2016-12-21 10:36:46 +01:00
Mike Lischke
e1fb0b68c7
C++ implementation of the LR-loop optimization.
2016-12-21 09:26:08 +01:00
Mike Lischke
4dd4a676a9
Merge branch 'master_upstream'
2016-12-21 09:10:21 +01:00
Eric Vergnaud
6398a06fba
fixes #1530 and #1531
2016-12-20 23:27:08 +08:00
Mike Lischke
56d1e2f2cc
Added new file to VS 2013 ANTLR project for correct building.
2016-12-19 17:48:27 +01:00
Mike Lischke
d324e9a46b
Merge branch 'master' into LR-loop-fix
2016-12-19 16:48:10 +01:00
Terence Parr
fed8c97bda
Merge pull request #1524 from ericvergnaud/improve-javascript-doc
...
Update npm related docs
2016-12-16 09:22:53 -08:00
Terence Parr
8df5550857
Merge pull request #1511 from mike-lischke/issue-1483
...
Issue 1483
2016-12-16 09:22:13 -08:00
Eric Vergnaud
14f0c7a663
also published to npm
2016-12-17 00:03:03 +08:00
parrt
c4c2966dbd
update doc
2016-12-15 20:42:29 -08:00
parrt
23313ee44e
[maven-release-plugin] prepare for next development iteration
2016-12-15 14:25:41 -08:00
parrt
aacd2a2c95
[maven-release-plugin] prepare release 4.6
2016-12-15 14:25:36 -08:00
parrt
7f95781321
update doc with more detail on building c#
2016-12-15 12:44:44 -08:00
parrt
586b36fe94
tweak doc. update assembly name to Antlr4.Runtime.Standard
2016-12-15 12:28:32 -08:00
parrt
3c1a34d005
add this to 'building a release doc'
2016-12-15 12:21:36 -08:00
Eric Vergnaud
321a6f2844
create and document NuGet packaging process
2016-12-15 12:01:10 -08:00
Eric Vergnaud
07f6e3a681
modify output paths
2016-12-15 12:01:10 -08:00
Eric Vergnaud
cf87c2371e
cleanup
2016-12-15 12:01:10 -08:00
Eric Vergnaud
d4e1f80cab
updated the page
2016-12-15 12:01:10 -08:00
parrt
484dd62a39
Merge branch 'master' of github.com:antlr/antlr4
2016-12-14 13:33:00 -08:00
Terence Parr
dd2f0a964f
Merge pull request #1509 from janyou/Fixes-1073
...
Fixes #1073 for Swift target
2016-12-14 13:25:46 -08:00
Terence Parr
fd3bd91828
Merge pull request #1508 from janyou/Fixes-1298
...
Fixes #1298 for Swift target
2016-12-14 13:25:27 -08:00
Terence Parr
8b75e3fc5b
Merge pull request #1505 from janyou/Fixes-1238-994
...
Swift target Fixes #1238 , Fixes #994
2016-12-14 13:25:04 -08:00