- 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>
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>
- 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>