Commit Graph

2 Commits

Author SHA1 Message Date
Bill
45dbdacc46 Fix SimpleExample test model concept reference syntax
- Removed namespace prefix from all concept attributes (k8se:XXXX -> XXXX)
- Removed namespace prefix from all role attributes
- Made SemAnno.structure import implicit=true
- Corrects MPS concept index resolution for model instantiation

This should resolve "Bad concept index key" error when loading the model.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-03 20:51:35 -07:00
Bill
36661381a3 Add SimpleExample test model demonstrating Phase 1 AST concepts
- Module: MathLibrary containing functions and variables
- Variables: PI and E with float type annotations
- Functions demonstrating various features:
  - add: Basic function with parameters, binary operations, return statement
  - isPositive: IfStatement with binary operations and boolean literals
  - factorial: While loop with binary operations and control flow
  - processArray: ForLoop with variable references and array processing
  - createPoint: Function returning a tuple with list literals
- Statements: Block, Assignment, If, While, ForLoop, Return, ExpressionStatement
- Expressions: BinaryOperation, VariableReference, Literals (Integer, Float, Boolean, Null, List)
- Types: PrimitiveType, ListType, TupleType, MapType
- Comprehensive test coverage of core AST structure

This model is ready for textgen compilation and output testing.

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