Class ConstantFolding
java.lang.Object
liquidjava.rj_language.opt.ConstantFolding
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValDerivationNodefold(ValDerivationNode node) Performs constant folding on a derivation node by evaluating nodes with constant values.
-
Constructor Details
-
ConstantFolding
public ConstantFolding()
-
-
Method Details
-
fold
Performs constant folding on a derivation node by evaluating nodes with constant values. Returns a new derivation node representing the folding steps taken
-