parrt
70d9ddcd0a
[maven-release-plugin] prepare for next development iteration
2018-12-18 10:35:34 -08:00
parrt
be58ebffde
[maven-release-plugin] prepare release 4.7.2
2018-12-18 10:35:24 -08:00
parrt
8fab6b98b3
[maven-release-plugin] rollback the release of 4.7.2
2018-12-18 10:33:52 -08:00
parrt
573cb86705
[maven-release-plugin] prepare release 4.7.2
2018-12-18 10:31:44 -08:00
parrt
9f6dfb1809
Merge branch 'master' of github.com:antlr/antlr4
2018-12-17 14:43:34 -08:00
parrt
38a95da397
manual edits of 4.7.1 -> 4.7.2
2018-12-17 14:32:39 -08:00
Sergey Chupov
804353e217
Avoid StringIndexOutOfBoundException
...
This fixes https://github.com/antlr/antlr4/issues/2138#issuecomment-397271786 . Clearly it's been an oversight, since the same code has been fixed for CodePoint8Bit in this commit: ac9f75303e
2018-06-14 16:03:17 +03:00
Mark Raynsford
b5b3a3c5fc
Add an Automatic-Module-Name
...
This adds an Automatic-Module-Name entry to the runtime jar in order to
provide a stable name upon which other modules can depend. The module
name chosen was "org.antlr.antlr4.runtime". This closely matches the
Maven artifact name with the obviously change that the module name
doesn't contain a hyphen (hyphens can't be used in module names at
the language level in Java).
Fix #2163
2018-02-11 13:06:19 +00:00
parrt
74779f334a
tweak comment to be consistent with code. Fixes #2172
2017-12-19 12:33:09 -08:00
parrt
17b6277502
[maven-release-plugin] prepare for next development iteration
2017-12-09 12:04:26 -08:00
parrt
bdc05c87be
[maven-release-plugin] prepare release 4.7.1
2017-12-09 12:04:17 -08:00
parrt
763a1242b7
update version number and tweak doc
2017-12-08 12:47:11 -08:00
Mike Lischke
eaed562cb3
Merge branch 'master' into interpreter2
2017-11-11 11:06:53 +01:00
parrt
aaa4250328
Fixes #2069 to catch env var security exception
2017-10-23 14:40:13 -07:00
Mike Lischke
16242e43c0
Merge branch 'master' into interpreter2
2017-10-22 13:48:10 +02:00
Terence Parr
db5a0aeaf2
Merge pull request #1955 from sharwell/fix-closurebusy
...
Avoid adding to closureBusy before all ATNConfig properties are set
2017-10-21 13:13:48 -07:00
Terence Parr
c861e09d39
Merge pull request #1977 from nielsbasjes/EmptyGetText
...
Fixed empty CodePointCharStream throwing exception on getText.
2017-10-10 12:47:00 -07:00
Ewan Mellor
99d32dc861
Add some version numbers to pom.xml.
...
This silences warnings from Maven.
2017-09-28 16:10:26 -07:00
Niels Basjes
ac9f75303e
Fixed empty CodePointCharStream throwing exception on getText. Fixes #1949
2017-08-02 14:30:46 +02:00
Sam Harwell
0803c74eb2
Report InputMismatchException with original context information
...
Fixes #1922
2017-07-27 18:34:13 -05:00
Sam Harwell
c8805ab584
Avoid adding to closureBusy before all ATNConfig properties are set
...
Setting ATNConfig properties can change the hash code of the instance, leading
to cases where the closureBusy set places objects in the wrong buckets. While
this has not led to known cases of stack overflow, it has led to cases where
one or more buckets contains a large number of duplicate objects, and the set's
add operation goes from O(1) to O(n).
2017-07-18 07:27:36 -05:00
Mike Lischke
aa2d34bdfd
Merge branch 'master' into interpreter2
2017-06-30 13:44:11 +02:00
lys0716
22034daf25
Typo in the comments of IntStream.java
...
An extra word is in the comments.
Signed-off-by: Yishuang Lu luyscmu@gmail.com
2017-05-31 21:17:29 -07:00
Mike Lischke
25eeb94498
Rule names are now always written to interpreter data file.
...
Updated loaders for Java and C++.
2017-05-05 17:00:41 +02:00
Mike Lischke
3bffb070b2
Final touches on Java part.
2017-04-21 17:32:44 +02:00
Mike Lischke
8995f0559f
Adds a new option to allow ANTLR to generate interpreter data.
...
Especially when you want to use LexerInterpreter and/or ParserInterpreter in any of the non-Java targets you have to provide the ATN and other data. The classes to generate these values are not in the runtime, however. Hence we need a way to tell ANTLR to produce that in a way that can be consumed by all targets.
This patch adds a new command line parameter (-interpreter) which causes ANTLR to parse the given grammars as usual and then let it generated a file for each grammar with the required interpreter values. A new InterpreterDataReader class has been added to the Java + C++ runtimes. This class can load the data file (a plain text file) and generate the structures that can directly be fed to the interpreters.
2017-04-15 16:55:49 +02:00
parrt
5616e370e4
add null check to findNodeSuchThat
2017-04-06 15:41:21 -07:00
parrt
62baf4bd0a
[maven-release-plugin] prepare for next development iteration
2017-03-30 14:11:59 -07:00
parrt
d4d7e3d3bc
[maven-release-plugin] prepare release 4.7
2017-03-30 14:11:49 -07:00
parrt
b5648f405b
tweak documentation about various targets
2017-03-30 10:44:28 -07:00
Ben Hamilton
a1c225dd23
Use UTF-8 by default in UnbufferedCharStream and allow specifying charset
2017-03-29 14:53:04 -07:00
parrt
c3ed9a992d
Add more about unbuffered streams. tweak style of code
2017-03-29 13:56:57 -07:00
parrt
0b36aca0e6
Merge branch 'master' into deprecate-old-streams
2017-03-29 13:43:28 -07:00
Ben Hamilton
9c61db36b0
Small tidy for Java UnbufferedCharStream
2017-03-29 13:32:55 -07:00
parrt
ef0ff3275f
Merge branch 'master' into deprecate-old-streams
2017-03-29 13:30:33 -07:00
parrt
496f9c398d
update unicode doc, code comments
2017-03-29 13:29:23 -07:00
Ben Hamilton
8108b342ad
Change UnbufferedCharStream to use 32-bit Unicode code points and 32-bit buffer
2017-03-29 13:14:18 -07:00
Ben Hamilton
200379802a
Tidy comments and add tests to ensure UTF-16 and UTF-32 support Unicode code points > U+FFF
2017-03-29 10:06:08 -07:00
Ben Hamilton
ab0655598e
Improve memory usage of CodePointCharStream: Use 8-bit, 16-bit, or 32-bit buffer
2017-03-27 16:46:42 -07:00
Ben Hamilton
850abe1c81
IntervalSet perf: Use binary search for IntervalSet.contains(el)
2017-03-24 12:19:38 -07:00
parrt
549d657ba4
rm dead code, tweak spaces, style.
2017-03-16 17:09:37 -07:00
Ben Hamilton
4f2168600d
Tidy up CharStreams API. Add new doc/unicode.md
2017-03-16 17:01:46 -06:00
parrt
b16cfd6edb
add copyright
2017-03-10 15:17:29 -08:00
parrt
8dd87d4966
cleanup
2017-03-10 14:57:24 -08:00
parrt
3d945eed2a
Fixes #1620 . Make handbuilt lexer to avoid cyclic dependence of tool and plugin.
2017-03-10 14:54:48 -08:00
parrt
d9d21fe9b3
found 2 cases that called function on empty set.
2017-03-02 14:18:00 -08:00
parrt
6572b08095
Fixes #1703 properly this time. addendum to #1718
2017-03-02 14:13:27 -08:00
parrt
37fdf66c13
Fixes #1703 . Updated comments to ensure people test isNil() or size() before requesting min, max, any single element.
2017-03-02 10:49:25 -08:00
parrt
3df19fbcc8
make format consistent with most of antlr project
2017-03-02 10:38:48 -08:00
Terence Parr
7f479fa5dc
Merge pull request #1700 from jvasileff/patch-1
...
Fix minor typo: possessive "its"
2017-03-01 14:45:46 -08:00