dillon1000/react
Commit
Browse files [HIR] add `for` terminal
The changes here are pretty significant and there's a bunch more left: - support for with any of `<init>`, `<test>` or `<update>` empty. - support for with `<init>` as `Expression` instead of VariableDeclaration` node - support assignment expressions in `<update>`, this seems like it might require further new abstractions to allow something like a block to codegen into a single expression.
Changed paths12 files
First-parent comparisoncompiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/HIR/Codegen.ts ModifiedM compiler/forget/src/HIR/HIR.ts ModifiedM compiler/forget/src/HIR/HIRBuilder.ts ModifiedM compiler/forget/src/HIR/HIRTreeVisitor.ts ModifiedM compiler/forget/src/HIR/InferReactiveScopeDependencies.ts ModifiedM compiler/forget/src/HIR/PrintHIR.ts ModifiedM compiler/forget/src/HIR/PrintHIRTree.ts ModifiedM compiler/forget/src/HIR/VisualizeHIRMermaid.ts ModifiedM compiler/forget/src/HIR/visitors.ts ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-for.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-for.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…