Minres / CoreDSL

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

PrimaryExpression grammar rules #19

Closed AtomCrafty closed 2 years ago

AtomCrafty commented 2 years ago

This PR splits the PrimaryExpression grammar rule into ParenthesisExpression, IdentifierReference, and Constant. It also renames Variable to Identifier.

PrimaryExpression was previously responsible for representing parenthesized expressions, identifier references, constant values and compound string literals. Each of these has now been promoted to a separate class, with PrimaryExpression as their super type.