Skip to content

Remove backwards compatibility and version references from the language#79

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/remove-backwards-compatibility
Draft

Remove backwards compatibility and version references from the language#79
Copilot wants to merge 4 commits into
mainfrom
copilot/remove-backwards-compatibility

Conversation

Copilot AI commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Strips all V1/V2/V3 version indicators, backward-compat aliases, and migration guides from the codebase. The language now has a single, clean definition with no version history exposed.

Breaking language changes

  • template keyword removed — use pattern
  • connection_point keyword removed — use ref
  • scope name : lang colon syntax removed — use scope name<lang>
# Before
template observable:
    element metrics:
        scope module<rust>
        connection_point prometheus: MetricsHandler

# After
pattern observable:
    element metrics:
        scope module<rust>
        ref prometheus: MetricsHandler

Source code

  • Lexer: Removed Template and ConnectionPoint token kinds
  • Parser: Removed backward-compat branches for both deprecated keywords and the legacy colon annotation syntax; updated all error messages to reference "pattern" instead of "template"
  • AST: Removed ConnectionPointDeclaration type alias; cleaned up doc comments
  • Interpreter: Removed V2 inline comments

Documentation

  • Deleted doc/language_v2.md
  • doc/language_reference.md: Removed title suffix (V3), Version: 3.0 header, Design Philosophy section, all V2/V3 inline labels, and Appendix D (migration guide)
  • doc/implementation_status.md: Removed backward-compat rows for template and connection_point; removed V2/V3 column notes

Examples

  • Deleted examples/v2_syntax_example.hie and examples/v3_syntax_example.hie
  • Added examples/syntax_example.hie demonstrating current syntax
  • Updated hielements.hie self-description to reference syntax_example.hie

Tests

All 92 unit tests and 121 self-checks updated and passing.


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Copilot AI and others added 3 commits March 14, 2026 15:49
…ref, remove legacy colon syntax

Co-authored-by: ercasta <1530425+ercasta@users.noreply.github.com>
- Remove title suffix '(V3)' and version/intro line
- Remove Design Philosophy section about V2/V3 improvements
- Remove Appendix D (Migration Guide) entirely
- Strip all V1/V2/V3 labels from section headers, code comments, and inline text
- Remove backward-compat rows for 'template' and 'connection_point' from keywords table
- Clean EBNF grammar: use only 'pattern' and 'ref' (no alternatives)
- Replace 'element.connection_point' example with 'element.ref_point'
- Fix duplicate TOC entry for Appendix C

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: ercasta <1530425+ercasta@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove all backwards compatible elements and version references Remove backwards compatibility and version references from the language Mar 14, 2026
Copilot AI requested a review from ercasta March 14, 2026 16:03
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.

2 participants