Commit Graph

10 Commits

Author SHA1 Message Date
Bill
8ca6eccd56 Sprint 2 Step 7: Schema validation 2026-02-06 19:31:38 -07:00
Bill
e763c2c32b Phase1Example working on choosing from enums actually done 2026-02-06 01:40:37 -07:00
Bill
9b420ba658 Phase1Example working on choosing from enum 2026-02-05 17:13:06 -07:00
Bill
a803676f0d textGen fixed, Phase1Example has 1 error left 2026-02-04 12:40:33 -07:00
Bill
6a695e5ed1 textGen borked, saving before further borking 2026-02-04 09:54:51 -07:00
Bill
a295f01a26 Fix Module child link IDs in Phase1Test registry
- Changed variables link ID from 8982541288447632589 to 8982541288447632590
- Changed functions link ID from 8982541288447632588 to 8982541288447632589

These are the correct link IDs from the structure definition.
2026-02-03 21:22:11 -07:00
Bill
0400c1bd91 Simplify Phase1Test to avoid XML character escaping issues
- Removed comparison operators that need XML escaping (<, >, etc.)
- Use text-based operators (plus, times) instead of symbols
- Two functions: add() and multiply() with parameters and bodies
- Demonstrates core Phase 1 concepts: Module, Function, Parameter, Assignment, Return, BinaryOperation

This version should load without XML parsing errors.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-03 21:19:59 -07:00
Bill
66840fbfe7 Fix XML special characters in operator properties
- Changed < to &lt;
- Changed > to &gt;

These need to be escaped in XML property values.
2026-02-03 21:18:39 -07:00
Bill
1b49ff317c Expand Phase1Test with comprehensive examples
Added to Calculator module:
- Global variable: PI
- Function add(x, y): Parameters, binary operations, assignments, returns
- Function isPositive(num): If/else statements, boolean literals, conditions
- Function sumTo(n): While loops, assignments, complex control flow

Now demonstrates:
- Functions with parameters and return types
- Multiple statement types (Assignment, IfStatement, WhileLoop, Return)
- Multiple expression types (BinaryOperation, VariableReference, Literals)
- Type annotations (PrimitiveType)

Should generate meaningful text output for textgen validation.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-03 21:17:34 -07:00
Bill
67b01c6c41 Create Phase1Example sandbox with minimal test model
- New sandbox: Phase1Example.sandbox with proper module descriptor
- Test model: Phase1Test.mps with minimal Phase 1 concept usage
- Registry includes Module and Variable with proper child relationships
- Child relationships mapped: variables (2Ks9RG) and functions (2Ks9RH)
- Simple structure: Module containing one Variable

Avoids complex nested structures to focus on verifying basic concept resolution.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-03 21:12:07 -07:00