tock-mirror/data
Adam Sampson 3005dfb506 Add a pass for folding constants in occam.
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.
2008-03-17 15:48:43 +00:00
..
AST.hs Added an annotation to array subscripts to indicate whether they should have a run-time check added or not 2008-03-09 14:30:19 +00:00
CompState.hs Add a pass for folding constants in occam. 2008-03-17 15:48:43 +00:00
Metadata.hs Rework the code for getting errors through the parser. 2008-03-04 12:52:25 +00:00