Closed dannymcgee closed 4 months ago
Currently, top-level statements like these will throw a parse error, due to the unexpected semicolons at the end of the statements:
#import foo::bar::baz; ^ struct Foo { bar: f32, baz: f32, }; ^
This PR adds a check to discard semicolon tokens at the top level, which fixes the issue. In the future, this could be refactored to emit some kind of "hint" diagnostic.
Currently, top-level statements like these will throw a parse error, due to the unexpected semicolons at the end of the statements:
This PR adds a check to discard semicolon tokens at the top level, which fixes the issue. In the future, this could be refactored to emit some kind of "hint" diagnostic.