Currently there is no way in the grammar to have a function call by itself on a line, it is not in the list of statements.
For example, the following will fail to parse:
fn a() -> void {
return;
}
fn b() -> void {
a();
return;
}
The statements list needs to be extended to have something like:
This means we'll have to do lookahead at in the statement parsing because you can't tell if this is a call or an assignment straight away.
Currently there is no way in the grammar to have a function call by itself on a line, it is not in the list of
statements.For example, the following will fail to parse:
The
statementslist needs to be extended to have something like:This means we'll have to do lookahead at in the statement parsing because you can't tell if this is a call or an assignment straight away.