![]() The existing constant-folding code in the parser is still there, since it needs to know whether things are constant, and A.Dimension expects an Int. However, this pass is useful because it does a better job of constant folding than the parser would on its own: it can fold subexpressions of expressions that are as a whole not constant. |
||
---|---|---|
.. | ||
LexOccam.x | ||
LexRain.x | ||
OccamPasses.hs | ||
OccamPassesTest.hs | ||
ParseOccam.hs | ||
ParseRain.hs | ||
ParseRainTest.hs | ||
ParseUtils.hs | ||
PreprocessOccam.hs | ||
PreprocessOccamTest.hs | ||
RainPasses.hs | ||
RainPassesTest.hs | ||
RainTypes.hs | ||
RainTypesTest.hs | ||
StructureOccam.hs | ||
StructureOccamTest.hs |