Minres / CoreDSL

Xtext project to parse CoreDSL files
Apache License 2.0
16 stars 3 forks source link

[Grammar] Flow Control Statements #41

Closed AtomCrafty closed 2 years ago

AtomCrafty commented 2 years ago

Implements proposals 4 and 5 from #37.

Structure Changes

Name Changes

Old Class Old Field New Class New Field
IfStatement cond IfStatement condition
IfStatement thenStmt IfStatement thenBody
IfStatement elseStmt IfStatement elseBody
SwitchStatement cond SwitchStatement condition
SwitchStatement items SwitchStatement sections
LabeledStatement items SwitchSection body
LabeledStatement constExpr CaseSection condition
JumpStatement expr ReturnStatement value