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
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
David MARKEY
2191c38619
Prefer "DebuggerNonUserCode"
2020-05-31 23:27:42 +02:00
David MARKEY
4cfbe5bd78
Update CSharp.stg
2020-05-31 19:07:13 +02:00
Larry Li
150ecabfff
Add docs for Dart target
2020-05-31 00:35:07 +10:00
Larry Li
2cb1618009
fix: run dart analyzer against google pedantic
2020-05-29 11:08:55 +10:00
Larry Li
51a9691376
fix: incorrect code generation when there are more than 65 tokens
2020-05-25 23:07:27 +10:00
Larry Li
62d56d83ae
Merge branch 'master' of github.com:antlr/antlr4 into dart-clean
2020-05-25 21:01:46 +10:00
Martin van Wingerden
37f3aae7cd
Update Swift.stg
...
_localctx is needed as var inside a test
2020-05-21 19:30:15 +02:00
Martin van Wingerden
fde1b3a580
Update Swift.stg
...
Marked `_startState` constant as suggested by validator instead of the incorrect: `_prevctx`
2020-05-21 16:20:00 +02:00
Martin van Wingerden
35c1f1ca6f
Update Swift.stg
...
A recent test/change seems to touch this var, made `_prevctx` a var instead of a let
2020-05-21 16:14:29 +02:00
Martin van Wingerden
b0f65ab5e0
Merge branch 'master' into patch-1
2020-05-17 11:44:16 +02:00