GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: align C# value binding with grammar by Seddryck · Pull Request #30 · Seddryck/Expressif.Syntax

Conversation

@Seddryck

@Seddryck Seddryck commented Aug 12, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Summary

  • bind record_access nodes, including current/original roots, named/positional selectors, and nested paths
  • add managed syntax nodes for variables and compound values that were already accepted by the grammar
  • compare the generated Tree-sitter value subtype contract with the binder's declared coverage so future drift fails tests

Root cause and impact

The grammar and C# binder evolved independently. Tree-sitter could produce valid value nodes that BindValue did not recognize, causing successfully parsed expressions such as .name to fail with ExpressifBindingException. The C# syntax model now covers every value subtype exposed by the grammar.

Validation

  • dotnet test bindings/csharp/Expressif.Syntax.Tests/Expressif.Syntax.Tests.csproj --nologo --no-restore -m:1 — 48/48 passed on net8.0, net9.0, and net10.0
  • tree-sitter test — all 78 inputs parsed; 72 snapshots passed and 6 pre-existing Windows CRLF/end-token snapshot differences remain
  • git diff --check

Close #29

Summary by CodeRabbit

  • New Features

    • Expanded C# syntax support for variables, record access, and record fields.
    • Added support for array, tuple, and record literals, including nested and compound values.
    • Record access now supports named fields, quoted names, and positional indexes.
    • Added syntax node coverage for the newly supported value types.
  • Tests

    • Added comprehensive validation for binding and grammar coverage.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Seddryck
fix: align C# value binding with grammar
ee95cb2
@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 642479a3-d97a-45b6-a4a3-56f98b823d98

📥 Commits

Reviewing files that changed from the base of the PR and between ec079d0 and ee95cb2.

📒 Files selected for processing (4)
  • bindings/csharp/Expressif.Syntax.Tests/Expressif.Syntax.Tests.csproj
  • bindings/csharp/Expressif.Syntax.Tests/SyntaxBindingTests.cs
  • bindings/csharp/Expressif.Syntax/ExpressifSyntax.cs
  • bindings/csharp/Expressif.Syntax/SyntaxNodes.cs

📝 Walkthrough

Walkthrough

The C# binding layer now supports variables, record access, array and tuple literals, record literals, and record fields. New syntax nodes expose selectors, quoting, nested values, and original-input state. Tests compare binder coverage with node-types.json.

Changes

C# value binding

Layer / File(s) Summary
Managed value syntax model
bindings/csharp/Expressif.Syntax/SyntaxNodes.cs
SyntaxKind and syntax node types now represent variables, record access, sequence literals, record literals, and record fields.
Value binding implementation
bindings/csharp/Expressif.Syntax/ExpressifSyntax.cs
The binder recursively handles supported value nodes, record-access selectors, positional indices, and quoted field names.
Binder contract and regression tests
bindings/csharp/Expressif.Syntax.Tests/...
Tests cover nested and compound values and verify that supported binder types match node-types.json.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Mergeability Score: ⚪ Minimal · up to ee95c

The PR expands C# value binding to match the grammar and adds coverage for supported syntax; reported tests pass, and no actionable merge-blocking risk remains.

Sequence Diagram(s)

sequenceDiagram
  participant Grammar
  participant BindValue
  participant BindRecordAccess
  participant RecordAccessSyntax
  Grammar->>BindValue: provide record_access value node
  BindValue->>BindRecordAccess: delegate record access binding
  BindRecordAccess->>RecordAccessSyntax: create selectors and original-input state
Loading

Possibly related PRs

  • Seddryck/Expressif.Syntax#21: Extends related C# value-binding and syntax-node infrastructure.
  • Seddryck/Expressif.Syntax#25: Adds related binding and syntax-node support for record_access.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: aligning C# value binding with the grammar.
Linked Issues check ✅ Passed The changes implement record-access binding, add grammar-alignment coverage, and provide the contract test required by issue #29.
Out of Scope Changes check ✅ Passed The changes are limited to C# value binding, syntax nodes, project test content, and regression tests related to issue #29.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/issue-29-bind-record-access

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Seddryck
Seddryck marked this pull request as ready for review August 12, 2026 22:55
@Seddryck
Seddryck merged commit 146aca3 into main Aug 12, 2026
12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Aug 13, 2026
feat: add parameterized expressions #33
Merged
feat: preserve tuple projection shorthand in CST #41
Merged
feat: add incoming value and record spread syntax #48
Merged
fix: resolve parser bugs 69 through 73 #74
Merged
feat(parser): support negated predicates and private record fields #92
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Keep C# value binding aligned with parser nodes

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Seddryck
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.