Closed nordlow closed 1 month ago
I'm not sure the grammar is completely clear here. I'll have a look -- but its possible that the grammar is ambiguous in this case (there are other cases where you need semantic information that isn't available in the syntax tree. This might be one of them.)
I tested this, and it seems right already:
(source_file
(function_declaration
(type
(void))
(identifier)
(parameters)
(member_function_attribute
(pure))
(member_function_attribute
(at_attribute
(identifier)))
(function_body)))
I've added a test case for the above. I'm closing this because I don't see a bug right now.
Currently
property
inis put in
when it should be
to conform with
pure
being put in.