forked from JavaTX/JavaCompilerCore
Grammatik-Regeln für "instanceof-PatternMatching" eingefügt
This commit is contained in:
parent
09ac2fc5cf
commit
df3e2b55f9
1
.gitignore
vendored
1
.gitignore
vendored
@ -19,6 +19,7 @@ bin
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
.project
|
.project
|
||||||
.settings/
|
.settings/
|
||||||
|
.vscode/
|
||||||
/target/
|
/target/
|
||||||
settings.json
|
settings.json
|
||||||
|
|
||||||
|
@ -480,6 +480,7 @@ formalParameter
|
|||||||
: variableModifier* unannType? variableDeclaratorId
|
: variableModifier* unannType? variableDeclaratorId
|
||||||
;
|
;
|
||||||
|
|
||||||
|
//TODO: weitere erlaubte Modifiert für Variablen aufnehmen (https://www.w3schools.com/java/java_modifiers.asp)
|
||||||
variableModifier
|
variableModifier
|
||||||
: annotation
|
: annotation
|
||||||
| 'final'
|
| 'final'
|
||||||
@ -1434,6 +1435,11 @@ castExpression
|
|||||||
| '(' referenceType additionalBound* ')' lambdaExpression
|
| '(' referenceType additionalBound* ')' lambdaExpression
|
||||||
;
|
;
|
||||||
|
|
||||||
|
// Java17
|
||||||
|
pattern
|
||||||
|
: variableModifier* referenceType annotation* Identifier
|
||||||
|
;
|
||||||
|
|
||||||
// LEXER
|
// LEXER
|
||||||
|
|
||||||
// §3.9 Keywords
|
// §3.9 Keywords
|
||||||
|
Loading…
Reference in New Issue
Block a user