omega-mcp
aien-dev/omega-mcp
Brought by drakestapleton
omega-mcp / data / examples / consts.om
| 1 | note named typed constants, used as an array length, a for count and a value |
| 2 | const lim uint 5 |
| 3 | const seven uint 7 |
| 4 | fn main to int |
| 5 | a = new uint lim seven |
| 6 | s = uint 0 |
| 7 | for i uint lim |
| 8 | s = add s get a i |
| 9 | end |
| 10 | ret int s |
| 11 | end |