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 — feat: distinguish private and public record field names · Issue #90 · Seddryck/Expressif.Syntax

feat: distinguish private and public record field names #90

New issue
Copy link
New issue
Copy link
Closed
#92
Closed
feat: distinguish private and public record field names#90
#92
Copy link
Labels
new-feature

Description

@Seddryck
Seddryck
opened on Aug 19, 2026
Issue body actions

Summary

Extend record parsing so field names beginning with _ are recognized as private field names and can be distinguished from public field names in the syntax model.

Expressif records use syntax such as:

{foo:=10, bar:=20}

Private fields should use the same record syntax with an _-prefixed name:

{foo:=10, _tmp:=20, bar:=30}

Parser requirements

  • Accept _ as the first character of a private record field name.
  • Preserve whether a parsed field name is public or private in the syntax tree, rather than requiring downstream consumers to reconstruct that distinction from unrelated syntax.
  • Keep the source spelling intact for diagnostics, formatting, and round-tripping.
  • Do not lower or remove private fields in the parser; visibility semantics belong to binding/runtime layers.

Semantics boundary

The parser only needs to expose the distinction:

foo   -> public field name
_tmp  -> private field name

The Expressif runtime will separately provide a public function that projects a record by removing private fields.

Examples

{foo:=10, _tmp:=20}

should parse as a record containing one public field and one private field.

Names such as:

_foo
_internalValue
_x1

should be recognized as private field names.

Acceptance criteria

  • Record fields beginning with _ parse successfully.
  • The syntax model exposes whether a field name is private or public.
  • Existing public field-name parsing remains unchanged.
  • Parser tests cover public-only, private-only, and mixed records.
  • No semantic projection/removal of private fields is performed by Expressif.Syntax.

Activity

  1. Seddryck
    added
    new-feature
    on Aug 19, 2026
  2. Seddryck
    closed this as completedin #92on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.