Skip to content

Syntax for range types - #1189

Merged
bocchino merged 11 commits into
feature/range-typesfrom
range-types-syntax
Nov 17, 2026
Merged

bocchino merged 11 commits into
feature/range-typesfrom
range-types-syntax

Conversation

@bocchino

Copy link
Copy Markdown
Collaborator

This PR adds the syntax component of #980:

  • Update the Ast and visitors, the lexer and parser, and the writers
  • Make minimal updates to the semantics to support these changes; full semantics will arrive in the next phase
  • Update the Scala syntax tests
  • Update the scripted syntax tests

@bocchino
bocchino requested a review from Kronos3 November 11, 2026 23:24
@zimri-leisher

Copy link
Copy Markdown

Just curious, why are you using -- instead of ... or +/-inf?

@bocchino

bocchino commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator Author

Just curious, why are you using -- instead of ... or +/-inf?

Here is the rationale:

  • We need a notation for "no bound specified."
  • -- is a standard notation in mathematics and in tables for "no value specified at this position."
  • ... is for representing a sequence of values without explicitly listing the elements.
  • +/-inf are IEEE floating-point values that are not represented as literal values in FPP.

@bocchino
bocchino merged commit 7c00b97 into feature/range-types Nov 17, 2026
14 checks passed
@bocchino
bocchino deleted the range-types-syntax branch November 17, 2026 16:20
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.

3 participants