Commit 75bde1b8 authored by Miklos Magyari's avatar Miklos Magyari Committed by Adam Knapp

OOP: added class property support in the parser

Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent b0e9b42f
......@@ -551,6 +551,9 @@ FUZZYKEYWORD: '@fuzzy';
INDEXKEYWORD: '@index';
LOCALKEYWORD: '@local';
TRAITKEYWORD: '@trait';
PROPERTYKEYWORD: '@property';
SETKEYWORD: '@set';
GETKEYWORD: '@get';
fragment DIGIT: [0-9];
......
......@@ -9042,6 +9042,7 @@ pr_ClassMember
}
| pr_TypeDef
| pr_PropertyDef
)
)
;
......@@ -9203,3 +9204,35 @@ pr_SelectClassCase:
pr_StatementBlock
SEMICOLON?
);
pr_PropertyDef:
(
PROPERTYKEYWORD
t = pr_Type
i = pr_Identifier
(
pr_BeginChar
(
( vis1 = pr_OopVisibility )?
( ABSTRACTKEYWORD
| FINALKEYWORD
| DETERMINISTICKEYWORD
)?
GETKEYWORD
( CLASSCASTING pr_TemplateBody
| sb1 = pr_StatementBlock )?
SEMICOLON?
|
( vis2 = pr_OopVisibility )?
( ABSTRACTKEYWORD
| FINALKEYWORD
| DETERMINISTICKEYWORD
)?
SETKEYWORD
( CLASSCASTING pr_TemplateBody
| sb2 = pr_StatementBlock )?
SEMICOLON?
)*
pr_EndChar
)?
);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment