Skip to content

Cleaned up reprolang grammar around symbol scope#375

Merged
jupblb merged 4 commits intomainfrom
michal/reprolang-global
Mar 18, 2026
Merged

Cleaned up reprolang grammar around symbol scope#375
jupblb merged 4 commits intomainfrom
michal/reprolang-global

Conversation

@jupblb
Copy link
Member

@jupblb jupblb commented Mar 18, 2026

No description provided.

jupblb added 4 commits March 18, 2026 13:37
Replace the implicit local symbol convention (names starting with 'local')
with an explicit 'local' keyword in the grammar. Symbols are now either:

- Global (default): visible across files, no keyword needed. Use 'global'
  with project name + descriptors for cross-repo references.
- Local: file-scoped, requires the 'local' keyword.

This fixes a latent bug where any symbol whose name happened to start with
'local' was incorrectly treated as file-scoped.

Also fix .gitattributes paths (src/ -> grammar/) to match the actual
tree-sitter output directory.
Aligns with SCIP spec terminology where <name> ::= <identifier>.
Cross-repo references are now written as just '<project> <descriptors>'
instead of 'global <project> <descriptors>'. The keyword was redundant
since all non-local symbols are global by default.
@jupblb jupblb force-pushed the michal/reprolang-global branch from c8487c7 to 012ada5 Compare March 18, 2026 12:59
@jupblb jupblb merged commit aa8cb0a into main Mar 18, 2026
9 checks passed
@jupblb jupblb deleted the michal/reprolang-global branch March 18, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant