tock-mirror/pass
Adam Sampson 36e7353ee7 Take NameType out of NameDef.
NameType is only really needed in the parser, so this takes it out of
NameDef, meaning that later passes defining names no longer need to
set an arbitrary NameType for them. The parser gets slightly more
complicated (because some productions now have to return a SpecType
and a NameType too), but lots of other code gets simpler.

The code that removed free names was the only thing outside the parser
using NameType, and it now makes a more sensible decision based on the
SpecType. Since unscoped names previously didn't have a SpecType at
all, I've added an Unscoped constructor to it and arranged matters
such that unscoped names now get a proper entry in csNames.

Fixes #61.
2008-06-02 10:13:14 +00:00
..
Pass.hs Make applyToOnly more general, and use it in more places. 2008-05-25 22:36:54 +00:00
PassList.hs Take NameType out of NameDef. 2008-06-02 10:13:14 +00:00
Properties.hs Added a type-class for retrieving the (AST) type of things 2008-05-17 11:41:52 +00:00
Traversal.hs Add some missing type constraints. 2008-05-26 17:41:38 +00:00