Parse function declarations without equals sign #280
Labels
Component: DSL
Something that concerns the design of PIE DSL
Component: editor
Priority: low
Status: proposal
Enhancement in the proposal stage
Type: enhancement
New feature or request
Summary
Parse function declarations with a missing equals sign between the signature and the implementation.
Todo
Reason
Reason: many languages (including Java) do not have the
=
, so I expect many people new to PIE will not expect it to be required.Description
Parse things like
This should either give an error (missing
=
) or be accepted as valid as well.Currently thinking it is best not to accept it, as the current syntax makes it more clear what is actually happening.
Implementation
To allow omitting the equals sign, make
=
optional in the syntax and give an error in Statix analysis if it is not included unless the implementation matchesPieFuncImpl(Block(_))
Search terms
parse, syntax, grammar, permissive, optional, omit, missing
Related issues
The text was updated successfully, but these errors were encountered: