You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parse expression statements consistently in nested blocks #478
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Nested blocks reject expression statements that the outer function-body parser accepts because their expression-start predicate is incomplete.
fun main() -> i32 {
if (true) {
true;
}
return 0;
}
On current master plus PR #474, wavec check rejects the semicolon after the boolean literal. The expression parser supports boolean and prefix expressions, but is_expression_start in front/parser/src/parser/types.rs does not enumerate the same set. This is another symptom of the duplicated body parsers tracked by the malformed-function-body audit.
The accepted grammar must not depend on block nesting when moving to alpha.
Scope
Make expression-start detection derive from or stay exhaustively aligned with the expression parser.
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity