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
|
||||
.project
|
||||
.settings/
|
||||
.vscode/
|
||||
/target/
|
||||
settings.json
|
||||
|
||||
|
@ -480,6 +480,7 @@ formalParameter
|
||||
: variableModifier* unannType? variableDeclaratorId
|
||||
;
|
||||
|
||||
//TODO: weitere erlaubte Modifiert für Variablen aufnehmen (https://www.w3schools.com/java/java_modifiers.asp)
|
||||
variableModifier
|
||||
: annotation
|
||||
| 'final'
|
||||
@ -1434,6 +1435,11 @@ castExpression
|
||||
| '(' referenceType additionalBound* ')' lambdaExpression
|
||||
;
|
||||
|
||||
// Java17
|
||||
pattern
|
||||
: variableModifier* referenceType annotation* Identifier
|
||||
;
|
||||
|
||||
// LEXER
|
||||
|
||||
// §3.9 Keywords
|
||||
|
Loading…
Reference in New Issue
Block a user