Camilo Roca
a3d2ca7ef5
fix: removed unnecessary "interface" initialization on test suite
2020-02-23 13:09:36 +01:00
parrt
f1ffc01723
[maven-release-plugin] prepare for next development iteration
2020-01-18 13:37:08 -08:00
parrt
3f41f283d1
[maven-release-plugin] prepare release antlr4-master-4.8-1
2020-01-18 13:37:01 -08:00
parrt
6c4b491d1b
set version to 4.8-1 to fix release
2020-01-18 09:39:46 -08:00
parrt
666131841c
[maven-release-plugin] prepare for next development iteration
2020-01-16 12:24:30 -08:00
parrt
d569f91795
[maven-release-plugin] prepare release 4.8
2020-01-16 12:24:22 -08:00
parrt
6ad9646382
update version in code to 4.8
2020-01-16 12:18:17 -08:00
parrt
441fea52b1
update to 4.3 version
2020-01-16 12:05:03 -08:00
Terence Parr
340b95bded
Merge branch 'master' into master
2019-12-15 09:01:48 -08:00
Ewan Mellor
10d182cf66
[Swift] Change the generation of the copyFrom method to work around SR-10260.
...
This bug in Swift 5's compiler causes a SIL verification error when calling
super.foo without overriding foo in the subclass. In our case, we are
generating a copyFrom implementation in the subclass, and calling
super.copyFrom. Crucially, the subclass implementation uses the context
subtype for the argument, which means that it doesn't actually override the
superclass's implementation. This then tickles the SIL verification bug.
Work around this by changing our autogenerated copyFrom definition to use
ParserRuleContext as the argument type. This means that it actually
overrides the implementation in ParserRuleContext, and so the super.copyFrom
call is generated correctly.
2019-11-18 13:24:28 -08:00
Tabari Alexander
1304e1b8d4
Fix placement of members in JS target.
...
The location of <namedActions.members> was moved be in the lexer
constructor, like it is for the parser constructor.
2019-10-29 11:36:47 -04:00
Juliana Amorim
25fa9b0de8
Fix codestyle and bugs in PHP.stg
2019-10-05 17:03:26 -03:00
Marcos Passos
24870012f5
Remove redundant assignment, optimize autoloading and tweak code style
2019-09-18 16:36:57 -03:00
Marcos Passos
789d746636
PHP Target
2019-09-14 09:39:58 -03:00
Iman Hosseini
d667b90bc9
Fixed TextIO compatibility with 3.6+
...
Fixing this issue: https://github.com/antlr/antlr4/issues/2611 (and probably https://github.com/antlr/antlr4/issues/2193 )
TextIO has moved since Python 3.6 so it should be imported considering the change for new versions.
2019-07-28 02:25:42 +04:30
Akos Kiss
acbd582678
Clean up namespace of generated Python3 listeners
...
Added `del <file.parserName>` to the end of the `ListenerFile`
template the same way it is used in `VisitorFile`.
2019-03-24 12:24:19 +01:00
Renata Hodovan
3c21a640cc
Fix imports in the Python2 sources.
...
Contrary to Python3, the lexers and parser generated for Python2 target
support only relative imports which causes a failure in case of
standalone scripts. The patch adapts these imports to work in both
cases.
2019-03-21 15:06:40 +01:00
Eric Vergnaud
81f7aee6ea
fix failing tests
2019-01-01 17:02:29 +01:00
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
38a95da397
manual edits of 4.7.1 -> 4.7.2
2018-12-17 14:32:39 -08:00
Ivan Kochurkin
70e3e5de70
ElementFrequenciesVisitor: override stringRef(TerminalAST ref) for correct processing of arrays of string literals
2018-11-18 15:54:20 +03:00
Ivan Kochurkin
d3745c7b93
RuleFunction: process STRING_LITERAL along with RULE_REF and TOKEN_REF. Add getRuleTokens method
2018-11-18 15:54:20 +03:00
Ivan Kochurkin
0a6dbc37b7
Grammar.java: add getTokenName(String literal) method
2018-11-18 15:54:20 +03:00
Joseph Smith
6f057dbc59
Use STGroupFile filename constructor
...
- URL constructor unnecessary
2018-11-13 14:59:12 -06:00
Joe R. Smith
7fcadaa9f7
Use release version of st4
2018-11-13 11:23:39 -06:00
Joe R. Smith
61d8aea398
Merge branch 'master' into master
2018-11-13 10:57:42 -06:00
Joseph Smith
6899cc5c76
update st4 dep
2018-11-13 10:56:25 -06:00
parrt
8047283de7
use latest ST4
2018-11-10 14:54:42 -08:00
parrt
f6c6217804
Force usage of previousContext in Cpp
2018-11-09 11:31:59 -08:00
parrt
5aa0df9c45
Fixes #2350
2018-11-09 11:28:30 -08:00
parrt
7591bf1705
updated ST version
2018-11-08 12:27:38 -08:00
Terence Parr
696f9b93df
Merge branch 'master' into master
2018-10-23 08:35:10 -07:00
Terence Parr
03a0a40835
Merge pull request #2373 from renatahodovan/parser-import
...
[Python3] Fix the import of parser superclasses.
2018-10-08 12:35:48 -07:00
Renata Hodovan
301ac82631
[Python] Add missing lexer super class imports.
...
Although, both lexer and parser grammars can have a custom super
class set, but only the generated parser sources were prepared to
import these classes. The patch makes custom lexer ancestor
classes imported, too.
2018-10-08 14:42:30 +02:00
Renata Hodovan
b748545707
[Python3] Fix the import of parser superclasses.
...
Until now, the generated Python3 code imported the custom parser
superclasses relatively. However, this only worked in Python3 if
the module was inside a package, since relative imports rely on
__name__ to determine the current module's position in the package
hierarchy. In case of a standalone script, this was always __main__
and hence these relative imports failed.
The patch handles this issue them same way as it is handled by
listener imports.
2018-10-08 13:59:57 +02:00
Terence Parr
1375995edb
Merge pull request #2190 from ericvergnaud/fix-#2188
...
fixes #2188
2018-07-24 15:56:43 -07:00
Terence Parr
171ef99e04
Merge branch 'master' into master
2018-07-13 17:44:53 -07:00
Terence Parr
61acb35f0c
Merge pull request #2299 from dhalperi/streamline-java-statics
...
Java.stg: use static functions instead of inline arrays
2018-06-02 13:00:42 -07:00
Daniel Halperin
2a6a107b49
Java.stg: use static functions instead of inline arrays
2018-05-30 21:17:59 -07:00
Stephen Vance
2971f37323
Update icu4j version to address CVEs
2018-05-23 09:01:07 -04:00
Joseph Smith
2daa261772
Don't generate interpreter data files if gencode is false
2018-04-26 13:06:04 -05:00
Joseph Smith
7e89f26e9b
Initialize STGroupFile with url, not file path
...
- absolute file paths not reliable way to find resources on classpath
- requires changes to ST4 in this PR:
https://github.com/antlr/stringtemplate4/pull/199
2018-04-24 17:43:00 -05:00
Joseph Smith
6469934441
revert groupId change
2018-04-24 07:27:26 -05:00
Joseph Smith
8ce79eec81
Ensure file paths passed to STGroup[File] are absolute
...
- gracefully handle grammars without source fileNames
2018-04-23 18:55:23 -05:00
Eric Vergnaud
8629d46bbe
fixes #2188
2018-01-01 14:13:11 +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