Issue warning for empty units during semantic analysis #8
Labels
enhancement
New feature or request
parser
Parser related issue
semantics
Related to semantics of the language
Empty unit name declaration is valid according to the original implementation in NEURON:
i.e.
is accepted now. Note the empty bracket on the left where there should be a name. Similarly, function declarations like the below are now also accepted:
Above behaviour was implemented in #3 in order to pass the fail existing ModelDB files.
When we will have semantic analysis pass for error checking, we can add a check to see if there is an empty unit definition like above and then error / throw exception. This way, parsing will be successful but the semantic analysis will be a "proper" place to do such checking.
The text was updated successfully, but these errors were encountered: