Commit Graph

122 Commits

Author SHA1 Message Date
parrt cb4e59d420 bump version to 4.9.2 2021-03-11 14:10:44 -08:00
Kko 8bcc12de28 Fix #3052 2021-01-27 15:07:54 +08:00
ericvergnaud bca2536f3f
Circleci project setup (#3055)
* Add .circleci/config.yml

* setup config

* use jdk8 image

* Updated config.yml

* Updated config.yml

* Updated config.yml

* more targets

* Updated config.yml

* update config

* update config

* update config

* update config

* update config

* Updated config.yml

* Updated config.yml

* Updated config.yml

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update runtime version

* update config

* update config

* python3 config

* update config

* align Python2 and Python3 test hierarchy

* update runtime version

* update config

* update config

* update config

* update config

* explore dart issue

* update dart installer

* update config

* update dart installer

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* use sudo on circle ci

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* Fix NPE

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* update config

* more consistent badges

* do not parallelize tests on circle-ci
2021-01-26 12:56:16 +08:00
Eric Vergnaud 7a9a26c7ec fix #3042 in Python 3 runtime 2021-01-23 17:22:17 +08:00
parrt eaa976e425 Bump version to 4.9.1 2021-01-03 10:13:19 -08:00
ericvergnaud d050e38635
Merge branch 'master' into py3runtime_test_dist 2021-01-01 09:50:01 +08:00
Alex Mykyta 6990edd4d4 Improve python3 performance via addition of __slots__ 2020-12-29 18:37:25 -08:00
ericvergnaud 4ce826a67e
Merge branch 'master' into master 2020-12-06 22:57:15 +08:00
Michael R. Crusoe d7742bf13b
Py3 Runtime: distribute the tests in the sdist 2020-11-27 10:00:51 +01:00
parrt d27e6cad09 Update to version num 4.9 in code / projects 2020-11-24 11:42:42 -08:00
HackerJang 5ec39c2a65 Changed Python runtime Lexer.py, Parser.py to support version > 5 2020-10-11 10:59:35 +09:00
Eric Vergnaud d3cc9ecc73 Fix undefined value 2020-10-02 17:31:00 +08:00
Robert McGregor 6f0657e5c9 separate py3 runtime tests from src tree + actually run said tests in CI 2020-09-14 20:38:22 +01:00
Song Yang 575271020f Copy documentation to all non-Java languages 2020-03-17 16:03:29 -04:00
parrt 6ad9646382 update version in code to 4.8 2020-01-16 12:18:17 -08:00
João Henrique ae28213343 Python3 XPath: Use Token.INVALID_TYPE instead of -1 on getXPathElement 2019-09-05 14:29:25 -03:00
João Henrique b0eb1825fb Spaces/Tabs mishap 2019-09-04 16:43:12 -03:00
João Henrique 8da2ce3044 Added XPath test on Python3 target 2019-09-04 16:02:39 -03:00
João Henrique f15a9f7628 Prevent XPath from returning the same node multiple times in Python3 2019-09-04 15:53:02 -03:00
João Henrique ae2a689a68 Fixed missing XPathLexer.STRING case 2019-09-04 15:33:24 -03:00
João Henrique 4c2f091e8c Style touch-ups on Python3 XPath implementation 2019-09-04 14:34:19 -03:00
João Henrique ff1283affb General XPath fixes for the Python3 runtime 2019-09-03 19:21:42 -03:00
Thomas 409b207bf1 Fix formating 2019-05-14 08:57:01 +02:00
Thomas 6fbc156f6c Align overlap condition on java implementation 2019-05-13 22:33:43 +02:00
Thomas 8d48f1a851 Fix overlaping condition 2019-05-08 14:26:11 +02:00
Terence Parr dade65a895
Merge pull request #2463 from youkaichao/python/test
update test script
2019-02-23 08:57:40 -08:00
Ralu de58c28a24
Fix off by one error in getChild 2019-02-06 10:41:38 +01:00
You Kaichao 45a4cdc67b update test script 2019-01-04 09:17:36 +08:00
You Kaichao 18e2a605c1 update python runtime doc 2019-01-03 19:29:56 +08:00
You Kaichao 157afd1a8d update code on updated master 2019-01-02 19:06:36 +08:00
Eric Vergnaud 90854967ca fix broken API calls 2019-01-01 15:04:20 +01:00
Eric Vergnaud 3ad118f87e fix invalid test sequence 2019-01-01 13:31:01 +01:00
Eric Vergnaud cccf6e87da Fix API inconsistency, where getText would expect a tuple named interval, leading to lots of confusion 2019-01-01 13:20:23 +01:00
Alexey Khoroshilov f73ae702f2 LexerATNSimulator: avoid repeatable import of Lexer
Importing module is quite expensive operation for using it
in a lexer during normal operations.

The patch avoids it by caching the required properties
in LexerATNSimulator object.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
2019-01-01 15:18:46 +03:00
parrt 38a95da397 manual edits of 4.7.1 -> 4.7.2 2018-12-17 14:32:39 -08:00
Eric Vergnaud 43e529ca73 fix #1955 for Python 2018-11-18 19:41:47 +08:00
Alex Mykyta 2a3530f513 Fix install dependency for python3.4
Add install dependency for "typing" backport if using anything older than Python3.5
2018-11-15 20:15:39 -08:00
Maxim Novikov c956fbbbc6 Allow importing StdinStream from antlr4 package 2018-07-31 07:04:48 +02:00
Maksim Novikov ad603efe91 Add StdninStream for python3 runtime. Closes: #2271 2018-07-27 20:37:34 +02:00
Terence Parr 73170a2076
Merge branch 'master' into master 2018-07-24 12:57:38 -07:00
Eric Vergnaud d134b6a12d Fixes #2301 2018-06-03 11:21:37 +08:00
sinopsysHK 58ef6bbc96 Enable running debug mode of ParserATNSimulator
This is to have appropriate logs during debug and avoid crashing in some occasions when startIndex=stopIndex

range(startIndex, stopIndex) is equivalent to an array of values from startIndex to stopIndex-1 thus when startIndex=stopIndex range(startIndex, stopIndex+1) = [startIndex] which is not exactly an interval and would break getText that is expecting an interval as a Tuple.
2018-05-16 23:37:21 +08:00
jkmar dfba8c68db [Python3] return result instead of None in visitor 2017-12-27 22:22:49 +01:00
parrt ba47b092e9 update setup.py to use setuptools not distutils (Python 3) 2017-12-10 12:32:52 -08:00
parrt 763a1242b7 update version number and tweak doc 2017-12-08 12:47:11 -08:00
Terence Parr e6d60007e7 Merge pull request #1956 from renatahodovan/syntax-errors
Python: add public getter to parsers to access syntax error count.
2017-09-17 11:20:56 -07:00
Robert Jacobson 8f30ae6610 Import RuleContext into the antlr4 module namespace. See Issue #2012. 2017-09-16 16:16:01 -04:00
Renata Hodovan 6e02088e6a Python: add public getter to parsers to access syntax error count.
ANTLR parsers in Java are allowed to access the number of encountered
syntax errors via the getNumberOfSyntaxErrors method. However, the
Python variants must use the protected _syntaxErrors member to get this
value. The patch defines the same getter for Python targets too.
2017-07-18 18:29:36 +02:00
alimg 60cce436c2 Merge branch 'master' of https://github.com/antlr/antlr4 into py-input-mismatch-error 2017-06-25 19:02:26 +03:00
Eric Vergnaud ff4ffa613b Fix ATN deserialisation for unicode chars FFFE and FFFF 2017-06-25 12:05:57 +08:00