tock-mirror/common
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
..
CommonTest.hs Go back to passing the value to the type-contains function. 2008-04-02 16:11:13 +00:00
Errors.hs Changed to print out the error context (based on the meta tag) on stderr instead of stdout 2008-05-30 16:40:21 +00:00
EvalConstants.hs Added a type-class for retrieving the (AST) type of things 2008-05-17 11:41:52 +00:00
EvalLiterals.hs Clean up EvalLiterals. 2008-04-08 00:29:23 +00:00
GenericUtils.hs Move DataBox into Utils. 2008-05-09 09:50:42 +00:00
Intrinsics.hs Added support for some intrinsic (time-related) functions in Rain 2008-03-22 18:58:10 +00:00
Pattern.hs Added the -fwarn-missing-signatures option and added all missing type signatures for non-test modules (and most for test modules too) 2008-02-05 23:06:03 +00:00
PrettyShow.hs Initial implementation of the occam-pi preprocessor. 2008-02-28 20:27:30 +00:00
ShowCode.hs Fixed implicit mobility to work in the (C++, at least) backend 2008-06-01 19:46:32 +00:00
TestFramework.hs Moved all the testPass* functions into the TestMonad, using unsafePerformIO for running them inside QuickCheck 2008-03-05 16:06:14 +00:00
TestHarness.hs Changed TestHarness to support Rain test files as well as occam 2008-05-17 13:13:52 +00:00
TestUtils.hs Take NameType out of NameDef. 2008-06-02 10:13:14 +00:00
TreeUtils.hs Moved all the testPass* functions into the TestMonad, using unsafePerformIO for running them inside QuickCheck 2008-03-05 16:06:14 +00:00
Types.hs Add SubscriptCheck field to SubscriptFromFor etc. 2008-05-26 17:36:26 +00:00
Utils.hs Added a new helper function, eitherToMaybe in Utils 2008-05-30 17:14:28 +00:00