Minres / CoreDSL

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

Declarations and declarators #20

Closed AtomCrafty closed 2 years ago

AtomCrafty commented 2 years ago

Depends on #19

This PR redefines how the syntax of declarations, declarators and initializers is parsed. It is mostly compatible with the previous version and mainly cleans up the grammar a bit.

It does however fix a bug where only the first parameter in parameter lists would be added to the params list.

Note for the future: Please avoid the use of grammar fragments at all cost, as they produce nonsensical type hierarchies.