- typescript-state-machine.ts: replace TODO stub at L557-559 with real
if/else TypeScript codegen from SpeckDL ifblock AST nodes
- parser.ts: fix require-continuation loop at L1213 that was consuming
'if (...)' lines as require args; added nextLine.startsWith('if ')
to the stop conditions so ifblocks parse correctly
- examples/ConditionalToggle.speck: new test fixture exercising if/else
- compiler.test.ts: new describe block for ifblock code generation
(asserts real 'if (' + brace block + 'else', no TODO stub)
Tests: 71/71 green (53 parser + 18 compiler incl. new ifblock test).
|
||
|---|---|---|
| .. | ||
| __tests__ | ||
| dist | ||
| node_modules | ||
| specs | ||
| src | ||
| test-output | ||
| test-output-rust/TigerBeetleLedger | ||
| .gitignore | ||
| .last-build | ||
| check-dist.sh | ||
| package-lock.json | ||
| package.json | ||
| test-ast.mjs | ||
| test-parser.mjs | ||
| tsconfig.json | ||