fmease / lushui

The reference compiler of the Lushui programming language
Apache License 2.0
7 stars 0 forks source link

Declaration ending in closing curly bracket still has to be terminated with a semicolon #112

Closed fmease closed 2 years ago

fmease commented 2 years ago

Declaration ending in closing curly bracket still has to be terminated with a semicolon. However, }s should also act as declaration terminators (e.g. module a of { module b of {} } works today).

This fails to parse even though it should successfully parse:

module x of {
module a of {}
module b of {}
}

Current workaround:

module x of {
module a of {};
module b of {}
}