Skip to content

Editor ships no example documents, though plan Task 6.2 ("Add demo commands and examples") is checked off #377

Open

Description

@matt-edmondson

Plan task

- [x] **Task 6.2: Application layer**
- Create a desktop editor over the AST
- Add interactive function creation capabilities
- Add language preview features
- Add demo commands and examples

  • Task 6.2: Application layer
    • Create a desktop editor over the AST
    • Add interactive function creation capabilities
    • Add language preview features
    • Add demo commands and examples

The box is checked, but the last bullet has no implementation behind it.

What exists today

  • Coder.Editor/CoderEditorApp.cs has New function / New class (NewDocument), Open, Save, Export, and the live multi-language preview, which covers bullets 1-3.
  • docs/gallery/*.png has screenshots of the editor.

What's missing

  • No example AST documents ship with the editor or the repo. Coder.Editor/ contains no example YAML or embedded resources, and nothing in it refers to an example.
  • No command such as File > Open Example. A new user always starts from an empty function and has to build every node by hand to see what the generators do.

Acceptance criteria

  • At least one example document (for instance a function with locals, arithmetic and a call, and a class with a property and a method) ships as YAML, either under Coder.Editor/examples/ or embedded.
  • The examples are reachable from the editor's File menu.
  • Each example passes AstGraph.Validate with no problems and generates in all seven languages.
  • A test in Coder.Test loads each example and asserts that it validates and generates.

Dependencies

None blocking. The example ASTs could later be reused by the per-language sample projects in #139 (Task 7.3), but this issue is limited to the editor.

Activity

  1. added
    enhancement
    on Oct 30, 2026
  2. matt-edmondson commented on Oct 30, 2026

    @matt-edmondson
    ContributorAuthor

    Triage


    Generated by Claude Code

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions