Commit Graph

2442 Commits

Author SHA1 Message Date
parrt 2b5bb2249e [maven-release-plugin] prepare for next development iteration 2021-03-11 14:18:19 -08:00
parrt 5e5b6d35b4 [maven-release-plugin] prepare release 4.9.2 2021-03-11 14:18:13 -08:00
parrt cb4e59d420 bump version to 4.9.2 2021-03-11 14:10:44 -08:00
Damian Andrei 76975c15ae
Merge branch 'master' into bettercpp 2021-03-03 12:55:51 +02:00
Taras Sotnikov f7b4100fcc
Fix TextIO compatibility with Python 3.6+ in LexerFile (#3067)
* Fix TextIO compatibility with Python 3.6+ in LexerFile

* Sign contributors.txt
2021-02-03 09:48:41 +08:00
ericvergnaud 107f40c63c
Use self hosted GitHub CI for Swift (#3036)
* Create swift-lexer.yml

Exploring self-hosted GitHub CI

* Create run-tests-swift.sh

* Update swift-lexer.yml

* Update swift-lexer.yml

* Update swift-lexer.yml

* chmod script

* chmod script

* fix typo

* Update swift-lexer.yml

* chmod script

* Update swift-lexer.yml

* Update swift-lexer.yml

* Update run-tests-swift.sh

* Update run-tests-swift.sh

* Update run-tests-swift.sh

* Update run-tests-swift.sh

* Update swift-lexer.yml

* Update swift-lexer.yml

* Update run-tests-swift.sh

* Update swift-lexer.yml

* Update swift-lexer.yml

* Update run-tests-swift.sh

* Update run-tests-swift.sh

* Update run-tests-swift.sh

* Update run-tests-swift.sh

* Update run-tests-swift.sh

* Update run-tests-swift.sh

* try java tests

* Update java-all.yml

* Update java-all.yml

* only run heartbeat when necessary (otherwise build hangs)

* kill hung process

* Update run-tests-swift.sh

* Update run-tests-swift.sh

* Update run-tests-swift.sh

* Create mac-action-runner-readme.txt

* try prefixing swift cmd with arch

* try again

* try locate generated binaries

* fix crash

* try from script

* keep trying

* keep trying

* in progress!

* let's see how it goes...

* fix failing build

* more logs

* more logs

* more logs

* finally ?

* grrrr

* let's see if maven is the culprit

* fix warnings when compiling swift runtime

* more warnings gone

* works with 1 class, how about many?

* more warnings gone

* less noise

* Revert "more warnings gone"

This reverts commit a09e221c41.

* try matrix

* fix failing build

* don't fail fast
2021-01-22 17:04:17 +08:00
ericvergnaud 1095804388
Fix swift warnings (#3043)
* fix warnings when compiling swift runtime

* more warnings gone

* more warnings gone

* Revert "more warnings gone"

This reverts commit a09e221c41.
2021-01-22 11:33:29 +08:00
parrt 19ec50f38a [maven-release-plugin] prepare for next development iteration 2021-01-05 11:22:10 -08:00
parrt 5c2b686f95 [maven-release-plugin] prepare release 4.9.1 2021-01-05 11:22:02 -08:00
parrt eaa976e425 Bump version to 4.9.1 2021-01-03 10:13:19 -08:00
Terence Parr d063120c87
Merge pull request #3019 from KvanTTT/InvalidGeneratedCodeAndNoRulesErrorIfOnlyFragmentsAreUsed
Invalid generated code and no rules error if only fragments are used
2021-01-02 10:40:22 -08:00
Alex Mykyta 6990edd4d4 Improve python3 performance via addition of __slots__ 2020-12-29 18:37:25 -08:00
Ivan Kochurkin 67f6089261 Throw error if lexer does not contain non-fragment rules, extend TestToolSyntaxErrors testA, fix #3000 2020-12-29 16:33:33 +03:00
Ivan Kochurkin 92bee7d929 Check parser.rules instead of parser.tokens in Cpp.stg (fix misprint) 2020-12-29 16:33:33 +03:00
Ivan Kochurkin ca2bfedb2c Fix .stg templates to exclude generating of invalid code if lexer or parser rules are not exist 2020-12-29 16:33:33 +03:00
Andrei DAMIAN f33a0f3d13 always generate static const array first for atn 2020-12-18 06:48:10 +02:00
ericvergnaud f19bb97ed0
Merge pull request #3003 from ericvergnaud/improve-csharp-code-gen
ensure 1 statement per line to help debug
2020-12-13 10:49:33 +08:00
Eric Vergnaud 50ecb47a42 ensure 1 statement per line to help debug 2020-12-12 20:44:21 +08:00
Eric Vergnaud 3ea6506bd4 Potential fix to #2980 2020-12-06 22:36:45 +08:00
ericvergnaud 19c64701e8
Merge pull request #2995 from tehbone/master
Fixed exception clauses in JS template.
2020-12-06 11:39:35 +08:00
Tabari Alexander 3bf3867054 Fixed exception clauses in JS template.
The generated exception clause block was missing a leading '}' to terminate the try block.
2020-12-05 20:27:26 -05:00
Eric Vergnaud 7d8b6dfae3 Fix incorrect token string templates 2020-11-29 10:27:22 +08:00
parrt 69318d35fc [maven-release-plugin] prepare for next development iteration 2020-11-24 12:45:28 -08:00
parrt 1364da5ed3 [maven-release-plugin] prepare release 4.9 2020-11-24 12:45:20 -08:00
parrt 59c24696ae tweak doc 2020-11-24 12:04:45 -08:00
parrt d27e6cad09 Update to version num 4.9 in code / projects 2020-11-24 11:42:42 -08:00
Adam Wójs 5d3452e5be [PHP] Escaped dollar signs in target string literals 2020-10-20 22:06:59 +02:00
Terence Parr 797f81d74c
Merge pull request #2781 from mlilback/master
added throws declaration missing from generated swift code
2020-10-20 12:39:05 -07:00
Terence Parr 71b48abb31
Merge pull request #2809 from martinvw/patch-1
[Swift] Update codegen template
2020-10-20 12:38:11 -07:00
Terence Parr 9e64dfc6e9
Merge pull request #2931 from ericvergnaud/javascript-es6-migration
Javascript es6 migration
2020-10-10 16:25:22 -07:00
Terence Parr 72fc722cb3
Merge branch 'master' into catch-codegen-error-python 2020-10-10 16:21:23 -07:00
Eric Vergnaud 0bd0a05f24 remove unnecessary test template 2020-10-03 17:17:56 +08:00
Eric Vergnaud 71cdf89eb3 generate es6 classes 2020-10-03 14:09:46 +08:00
Terence Parr da848154d8
Merge pull request #2906 from antlr/fix-template-issue
Fix template issue
2020-09-15 09:36:56 -07:00
Felix Nieuwenhuizen c128f0659b add missing semicolon to AltLabelStructDeclHeader
rules with alternative labels were generating Cpp header files with missing semicolons in declarations after PR#2806 removed duplicate semicolons.
StructDeclHeader and AltLabelStructDeclHeader differed in how attributes were declared
2020-09-13 19:20:23 +02:00
Eric Vergnaud c0bf19846c Fix #2745 2020-09-13 21:07:01 +08:00
Terence Parr 2aafb7f143
Merge pull request #2836 from sigmasoldi3r/master
[C++ codegen] Fixed deprecation warning for CPP targets > 17
2020-09-11 08:49:39 -07:00
Terence Parr ffef8cb278
Merge pull request #2850 from nburles/use_explicit_constructor
[C++ codegen] Add explicit keyword to constructor
2020-09-10 10:53:33 -07:00
Terence Parr 2b119be553
Merge pull request #2854 from nburles/fix_u8string_cpp20
[C++ codegen] Remove use of the u8"" string literal prefix
2020-09-10 10:52:46 -07:00
Terence Parr 630e4c0b7d
Merge pull request #2865 from nburles/fix_switch_missing_default_case
[C++ codegen] Add default cases to AltBlock and OptionalBlock
2020-09-10 10:52:25 -07:00
Pablo Blanco Celdrán 7d10669421
Merge branch 'master' into master 2020-09-10 17:55:55 +02:00
Felix Nieuwenhuizen 68e9a25bbe don't generate extra/duplicate semicolons 2020-08-19 18:25:19 +02:00
Terence Parr dfc7ffc39c
Merge branch 'master' into dart-clean 2020-07-27 11:33:40 -07:00
Nathan Burles 8b706e2427 Add default cases to AltBlock and OptionalBlock
All other switch statements have a default case (either "break" or
"<error>"), but these are missing.

Does not change functionality, simply fixes a warning - and allows a
project to build with -Werror.
2020-07-15 14:33:59 +01:00
Nathan Burles 1692ed2a17 Add explicit keyword to constructors
To avoid unexpected implicit casts.
2020-07-03 15:10:26 +01:00
Martin van Wingerden a62ca70327
Merge branch 'master' into patch-1 2020-06-30 08:27:28 +02:00
Nathan Burles 09eb905332 Remove use of the u8"" string literal prefix
Prior to C++20, the type of a "UTF-8 encoded string literal" is char
const * - i.e. it is exactly the same as a non-prefixed string literal
(they are semantically different, but technically the same).

Since C++20, the type of a UTF-8 encoded string literal is changed to
char8_t const * - which is not convertable to char const *.  Even in
C++20, there is no actual change to how characters are stored, only the
type is changed (they are now semantically different, and supposed to be
technically different - but nothing in the language actually uses the
semantics).

In short, removing the u8"" prefix has no effect prior to C++20, and
simply allows compilation to succeed since c++20.
2020-06-22 10:07:01 +01:00
Felix Nieuwenhuizen c134dac863 escape ? character in c++ codegen to prevent accidental trigraphs
(using an override of shouldUseUnicodeEscapeForCodePointInDoubleQuotedString in CppTarget)
2020-06-21 22:04:51 +02:00
Pablo Blanco Celdrán 739cb0b668
Merge branch 'master' into master 2020-06-06 19:59:20 +02:00
Pablo Blanco Celdrán e7a10a070a Fixed deprecation warning for CPP targets > 17 2020-06-04 15:55:39 +02:00