Skip to content

Parser: recover on unfinished if and binary expressions#19724

Open
auduchinok wants to merge 3 commits into
dotnet:mainfrom
auduchinok:parser-if-binary
Open

Parser: recover on unfinished if and binary expressions#19724
auduchinok wants to merge 3 commits into
dotnet:mainfrom
auduchinok:parser-if-binary

Conversation

@auduchinok
Copy link
Copy Markdown
Member

@auduchinok auduchinok commented May 12, 2026

An alternative take on #17257.

This PR continues the approach from #19708 and applies it to additional rules. Unlike that PR, the new precedence used in a rule that has much more productions, which sometimes is a bit riskier, but, together with the lowest precedence possible, it gives good recovery in cases that previously didn't work and hopefully won't interfere with other rules.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/11.0.100.md

@github-actions github-actions Bot added the ⚠️ Affects-Bootstrap Tooling check: PR touches compiler bootstrap chain label May 12, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@auduchinok
Copy link
Copy Markdown
Member Author

@T-Gro Can we somehow reduce the amount of generated comments, maybe? Could just setting labels be sufficient?

@T-Gro
Copy link
Copy Markdown
Member

T-Gro commented May 13, 2026

@auduchinok : Yes, will try to reduce the text to a minimum and maybe move from "resolve old + write new" to "update existing comment"

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 Tooling Safety Check — Affects-Bootstrap
Affects-Bootstrap: src/Compiler/pars.fsy — parser grammar processed by FsYacc during bootstrap

(scanned-sha)082c18c304e60830f885748df41680eac12aea34(/scanned-sha)

Generated by PR Tooling Safety Check · ● 2.7M ·

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ Affects-Bootstrap Tooling check: PR touches compiler bootstrap chain

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

2 participants