dillon1000/react
Commit
Browse files [valueblocks] ReactiveFunction repr for logical expressions
Extends ReactiveInstruction's value type to be a regular InstructionValue *or* a LogicalValue. LogicalValue is operator, left, and right. It's really convenient that we've already distinguished Instruction/ReactiveInstruction now — while the _helpers_ here are updated to handle this new value type, the types ensure that HIR can never encounter a LogicalValue. The actual conversion of logical terminals into this value is complex and is later in the stack.
Changed paths10 files
First-parent comparisoncompiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/HIR/HIR.ts ModifiedM compiler/forget/src/HIR/PrintHIR.ts ModifiedM compiler/forget/src/HIR/visitors.ts ModifiedM compiler/forget/src/ReactiveScopes/BuildReactiveBlocks.ts ModifiedM compiler/forget/src/ReactiveScopes/CodegenReactiveFunction.ts ModifiedM compiler/forget/src/ReactiveScopes/MergeOverlappingReactiveScopes.ts ModifiedM compiler/forget/src/ReactiveScopes/PropagateScopeDependencies.ts ModifiedM compiler/forget/src/ReactiveScopes/RenameVariables.ts ModifiedM compiler/forget/src/ReactiveScopes/visitors.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…