Commit Graph

36 Commits

Author SHA1 Message Date
Neil Brown
99780d497b Added a Haddock ignore-exports declaration to RainPassTest 2007-08-28 15:27:29 +00:00
Neil Brown
63236cbc5a Rain: added another test for the unique pass 2007-08-28 15:27:03 +00:00
Neil Brown
06e321f973 Rain: removed the now-unnecessary pass that fixed up the types of the casts for channel-ends 2007-08-30 18:14:59 +00:00
Neil Brown
f2cb0b7cce Rain: added a pass for fixing the types of channel-end casts and appropriate tests 2007-08-28 11:02:17 +00:00
Neil Brown
068336ad33 Rain: added tests for testing the pass that checks the parameter types passed to process calls 2007-08-24 16:26:16 +00:00
Neil Brown
0913ab655c Adjusted the tests for findMain to allow a nonce to be using during name mangling 2007-08-23 10:05:54 +00:00
Neil Brown
0c28f6255c Added an initial crude implementation of name mangling for the main function 2007-08-22 22:40:50 +00:00
Neil Brown
d90f0aa680 Rain: corrected the transformation of foreach loops to use ValAbbrev when looping over an expression 2007-08-22 17:03:47 +00:00
Neil Brown
1620528958 Rain: corrected the testUnique4 test to be as I intended 2007-08-22 15:54:05 +00:00
Neil Brown
412a746e25 Rain: added a test for recording and resolving process parameters 2007-08-22 15:20:40 +00:00
Neil Brown
a897712033 Rain: added a pass for finding and tagging the main function 2007-08-22 13:07:59 +00:00
Neil Brown
79678055bc Rain: added a test for resolving/recording process names 2007-08-22 12:36:42 +00:00
Neil Brown
96145add21 Rain: combined two passes into one to allow them to work properly in future, and changed the tests accordingly 2007-08-22 12:24:12 +00:00
Neil Brown
9714385eba Rain: added another test for a pass 2007-08-22 11:49:04 +00:00
Neil Brown
289b1c79a7 Rain: corrected the tests checking the each-loop transformation to make sure that the nonce names are recorded properly 2007-08-22 11:12:35 +00:00
Neil Brown
914f4cbb2b Rain: tweaked a few tests to use a specific integer type 2007-08-22 11:09:32 +00:00
Neil Brown
391890faa7 Moved TreeUtil.Pattern to its own module (Pattern), which allowed me to show the pshowPattern function to be part of the PrettyShow.pshow function 2007-08-20 21:01:06 +00:00
Neil Brown
e38d29f43d Moved a bunch of functions from RainPassTest to TestUtil, so that they can be re-used 2007-08-18 23:00:41 +00:00
Adam Sampson
c8d5a4ff40 Add licensing information.
The compiler itself is under the GPLv2+; the support code that gets built into
user programs is under the LGPLv2+. This matches the existing practice for the
KRoC project.

(As with Occade, I've used the new GPLv3-style license header in the source
files, though, since that avoids having to update the FSF's postal address.)
2007-08-18 20:42:11 +00:00
Neil Brown
f9a811e775 Rain: implemented the pass for recording inferred types, and added one more test for it 2007-08-18 18:10:51 +00:00
Neil Brown
3473c512a3 Rain: Added a helper function to the pass tests for tests that are expected to fail 2007-08-18 18:10:09 +00:00
Neil Brown
3f84532695 Renamed the old pass that recorded declared types, added a new skeleton pass for recording inferred types, and wrote some tests for this new pass 2007-08-18 17:33:40 +00:00
Neil Brown
b9c12a0b22 Rain: refactored the tests, pulling out some common functionality 2007-08-18 17:32:41 +00:00
Neil Brown
bc24ba16b1 Rain: added a skeleton pass for recording type names in CompState, and wrote a test for it 2007-08-18 16:56:25 +00:00
Neil Brown
d7dc28ce47 Rain: generalised part of the test framework and added a new helper function for testing passes 2007-08-18 16:55:20 +00:00
Neil Brown
dcfd23db4f Rain: expanding the unique-name pass to also resolve inner variables, and changed the tests accordingly 2007-08-18 16:03:19 +00:00
Neil Brown
9d9b6dd73f Rain: added a skeleton pass for giving variables unique names, and wrote tests for it 2007-08-18 15:39:39 +00:00
Neil Brown
f732996c13 Rain: added various helper functions to RainPassTest 2007-08-18 15:38:43 +00:00
Neil Brown
7b81208794 Rain: refactored the pass tests to remove duplicate code 2007-08-18 10:59:00 +00:00
Neil Brown
3cb1a942f4 Rain: tidied up the types of the each tests slightly 2007-08-18 10:36:04 +00:00
Neil Brown
18fa9cdb65 Rain: added another test for the transformEach pass 2007-08-18 10:21:44 +00:00
Neil Brown
a49c462ca1 Corrected the test of the rain foreach-pass -- the test now passes 2007-08-16 14:17:44 +00:00
Neil Brown
b9a78e99e4 Added to RainPassTest some code for setting up the defined names 2007-08-16 13:51:17 +00:00
Neil Brown
8a9ce4e205 Changed the rain for-each pass to extract the inner result type to check against, not the IO monad (oops) 2007-08-16 13:35:23 +00:00
Neil Brown
3d1d5e35ef Changed the rain foreach-pass test to actually run the transformEach pass it was meant to be testing, and also got the transformEach test to compile 2007-08-16 13:16:04 +00:00
Neil Brown
2d7349eb5d Added a new file for Rain passes, and a file for testing them, and altered the main test rig accordingly 2007-08-16 12:19:30 +00:00