Bill
a06bb0eb2a
Add editor definitions for all 31 Phase 1 AST concepts
...
Created editors for:
- 4 core nodes: Module, Function, Parameter, Variable
- 7 statement types: Block, Assignment, IfStatement, WhileLoop, ForLoop, Return, ExpressionStatement
- 13 expression types: BinaryOp, UnaryOp, FunctionCall, VariableRef, Literals, ListLiteral, Access
- 8 type system concepts: PrimitiveType, ListType, SetType, MapType, TupleType, ArrayType, OptionalType, CustomType
All editors reference correct concept IDs from fixed structure.mps.
Editors use horizontal and vertical layouts for proper rendering.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-02-03 20:35:02 -07:00
Bill
fec7284a8f
Remove problematic editor definitions pending structure.mps ID fixes
...
The editor definitions referenced concepts with duplicate IDs in structure.mps.
The structure file needs ID correction before editors can be properly created.
To fix:
1. In MPS, open the SemAnno language
2. Right-click on problematic concepts (showing duplicate ID errors)
3. Select 'Correct ID' intention to auto-generate unique IDs
4. Once structure is clean, recreate editor definitions
See notes below for details.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-02-03 20:03:53 -07:00
Bill
61997ce49e
Add Phase 2 editor definitions for all core AST concepts
...
- Module editor: renders module signature and nested functions/variables
- Function editor: renders function signature with parameters, return type, and body
- Statement editors: Block, Assignment, IfStatement, WhileLoop, ForLoop, Return, ExpressionStatement
- Expression editors: BinaryOp, UnaryOp, FunctionCall, VariableReference, Literals, Collections, Access
- Type editors: PrimitiveType, ListType, OptionalType, CustomType
All editors support:
- Syntax highlighting with keyword rendering
- Proper indentation for nested structures
- Inline reference editing
- Horizontal and vertical layout as appropriate
Completes Phase 2 of Core AST Structure feature specification.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
2026-02-03 17:19:52 -07:00