tock-mirror/frontends
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
..
LexOccam.x Added support for array constructors to the occam parser 2008-03-10 22:58:36 +00:00
LexRain.x Changed the list concatenation operator to be ++ in Rain 2008-05-18 10:30:17 +00:00
OccamPasses.hs Renamed ndType to ndSpecType, as per Trac ticket #59 2008-05-21 13:38:51 +00:00
OccamPassesTest.hs Define variables necessary for some of the constant-folding tests. 2008-04-06 13:12:04 +00:00
OccamTypes.hs Take NameType out of NameDef. 2008-06-02 10:13:14 +00:00
OccamTypesTest.hs Add SubscriptCheck field to SubscriptFromFor etc. 2008-05-26 17:36:26 +00:00
ParseOccam.hs Take NameType out of NameDef. 2008-06-02 10:13:14 +00:00
ParseRain.hs Take NameType out of NameDef. 2008-06-02 10:13:14 +00:00
ParseRainTest.hs Take NameType out of NameDef. 2008-06-02 10:13:14 +00:00
ParseUtils.hs Added the -fwarn-unused-imports compiler option to warn about unused imports, and then set about pruning and ordering (mostly in my code) the import lists for all the modules 2007-09-27 13:13:46 +00:00
PreprocessOccam.hs Tidied up the type of handleDirective to make it easier to use 2008-03-05 16:05:21 +00:00
PreprocessOccamTest.hs Split include file expansion out into a separate pass. 2008-02-29 15:01:19 +00:00
RainPasses.hs Take NameType out of NameDef. 2008-06-02 10:13:14 +00:00
RainPassesTest.hs Take NameType out of NameDef. 2008-06-02 10:13:14 +00:00
RainTypes.hs Take NameType out of NameDef. 2008-06-02 10:13:14 +00:00
RainTypesTest.hs Changed the expression types to use type unification, and removed the old test 2008-05-18 10:30:25 +00:00
StructureOccam.hs Split include file expansion out into a separate pass. 2008-02-29 15:01:19 +00:00
StructureOccamTest.hs Split include file expansion out into a separate pass. 2008-02-29 15:01:19 +00:00
TypeUnification.hs Added Meta tags all over the place in the type unification to give better error messages 2008-05-20 18:42:20 +00:00
UnifyType.hs Added Meta tags all over the place in the type unification to give better error messages 2008-05-20 18:42:20 +00:00