index
ExpressionToCircuit
ExpressionToCircuit(inputs, expression, output, ops) => DigitalObjectSet
Main driver function for parsing an expression into a circuit.
Parameters
inputs: Map<string, DigitalComponent>
– A map correlating input name to the DigitalComponent it represents.expression: string
– The expression to be parsed.output: DigitalComponent
– The DigitalComponent to use as an output, port 0 will be used.ops: OperatorFormat
– The strings used to represent the different operators.
Returns
-
DigitalObjectSet
– The circuit generated by the given expression, null on error (see above).