From 1b49ff317c699f28384fcbc3a54442964e10ac81 Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 3 Feb 2026 21:17:34 -0700 Subject: [PATCH] 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 --- Phase1Example.sandbox/models/Phase1Test.mps | 187 +++++++++++++++++++- 1 file changed, 182 insertions(+), 5 deletions(-) diff --git a/Phase1Example.sandbox/models/Phase1Test.mps b/Phase1Example.sandbox/models/Phase1Test.mps index ea83752..1f1684c 100644 --- a/Phase1Example.sandbox/models/Phase1Test.mps +++ b/Phase1Example.sandbox/models/Phase1Test.mps @@ -8,12 +8,54 @@ + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -21,10 +63,145 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +