Commit Graph

1278 Commits

Author SHA1 Message Date
Douglas Warren
1d83167c01 Fixed some haddock parsing problems in the documentation 2007-11-14 16:26:47 +00:00
Douglas Warren
7b9789da59 Changed the parse mode to pretty-print the AST by default 2007-11-14 16:26:19 +00:00
Douglas Warren
d82a80639d Removed the dependency on Control.Monad.State.Class package, since that isn't in the older Debian versions 2007-11-14 16:24:03 +00:00
Neil Brown
7fe77146d0 Added some more documentation in the PassTest module. 2007-11-12 18:03:25 +00:00
Neil Brown
7d175b1d0d Added more documentation to the testing frameworks in the backends directory. 2007-11-12 17:51:54 +00:00
Neil Brown
feec33df4a Reinserted the haddock rules into the Makefile.am (they got missed out in the transition from the old build system) and put a warning-check for haddock in the configure.ac file. 2007-11-12 17:35:03 +00:00
Neil Brown
1a7d77d9c4 Added more documentation to the tests for the Rain frontend passes 2007-11-12 15:45:07 +00:00
Neil Brown
01c7f25f46 Added much more documentation to the FlowGraphTest module 2007-11-12 15:19:12 +00:00
Neil Brown
3d38db522f Updated the documentation in TestMain as to which modules the unit tests come from. 2007-11-12 14:34:50 +00:00
Neil Brown
29333729eb Added QuickCheck to the list of needed libraries in configure.ac 2007-11-11 00:35:47 +00:00
Neil Brown
a248f58201 Turned off generating ASTS with Specs inside Case statements until they have been properly implemented and tested 2007-11-10 23:29:49 +00:00
Neil Brown
185f515cf7 Improved the error message when the graph building fails for QuickCheck 2007-11-10 23:18:21 +00:00
Neil Brown
089091d59b Added a safety check when building the flow graph 2007-11-10 23:18:01 +00:00
Neil Brown
ff01b24efd Added more items to the AST QuickCheck generator 2007-11-10 21:13:55 +00:00
Neil Brown
19ba2a321c Fixed another misplaced Meta tag problem, this time with Specification 2007-11-10 21:13:16 +00:00
Neil Brown
2c33e1e499 Fixed some meta-tag confusion with the While statement when building a flowgraph 2007-11-10 20:28:12 +00:00
Neil Brown
ac2bee7b48 Added a generator for A.Case to the flow-graph testing 2007-11-10 19:17:01 +00:00
Neil Brown
f050dadaec Added a type specifier to FlowGraphTest to match the changes to the flow-graph builder 2007-11-10 19:16:20 +00:00
Neil Brown
181f7638c4 Changed Main to reflect the changes to the flow-graph builder 2007-11-10 19:10:25 +00:00
Neil Brown
53826fb405 Changed the flow-graph builder to allow the monad for AlterAST to be different from the monad for GraphLabelFuncs (they always were separate internally anyway) 2007-11-10 19:07:43 +00:00
Neil Brown
7168799784 Fixed the use of the wrong meta tag in the handling of A.Choice when building the FlowGraph, which was confusing the QuickCheck tests 2007-11-10 18:31:16 +00:00
Neil Brown
7929715594 Added support for printing printing the results of QuickCheck test failures 2007-11-10 18:23:04 +00:00
Neil Brown
2a7662e46e Added code to build an AST properly for testing (esp. A.Structured) and implemented enough tests to get a failure 2007-11-10 01:31:56 +00:00
Neil Brown
85375c3c6c Changed the flow-graph testing quickcheck functions to use a size parameter when recursively building the trees 2007-11-09 23:48:12 +00:00
Neil Brown
d60d70cf82 Changed the unique identifiers in FlowGraphTest to be their own type, to reduce confusion 2007-11-09 20:05:06 +00:00
Neil Brown
83ab0c16f5 Added a couple more helper functions/operators to the Utils module 2007-11-09 19:45:03 +00:00
Neil Brown
1554d5c7ba Added an initial (slightly clumsy) attempt at using quickcheck to generate ASTs and test the flow-graph-based tree-altering functions 2007-11-09 17:47:10 +00:00
Neil Brown
2141a7d6f2 Added AlterAST to FlowGraph's export list 2007-11-09 17:45:19 +00:00
Neil Brown
a46c7a6fe3 Added more functions to the Utils function, for uncurrying functions and forming cartesian products 2007-11-09 17:26:55 +00:00
Neil Brown
572b53c3b6 Added another helper function to Utils; a version of modify that returns the old state 2007-11-09 17:13:58 +00:00
Neil Brown
af1574643d Added two more helper functions to the Utils module 2007-11-09 11:19:09 +00:00
Neil Brown
47f5e36f9c Added another helper function, seqPair, to the Utils module 2007-11-09 01:23:46 +00:00
Neil Brown
8f96af8bb8 Changed a few functions to use the new helper function foldFuncs 2007-11-09 01:21:30 +00:00
Neil Brown
bacc3115e9 Added various general helper functions to the Utils module 2007-11-09 01:18:42 +00:00
Neil Brown
a5c02f36ec Removed the Metadata hack (where emptyMeta was "equal" to every other Meta data tag) 2007-11-10 14:14:18 +00:00
Neil Brown
da76be9dab Changed RainParseTest to stop relying on the Meta tag hack, and also added some more documentation. 2007-11-10 14:13:14 +00:00
Neil Brown
78b3c038c3 Changed the types in RainUsageCheck and RainUsageCheckTest to match the changes to FlowGraph's type 2007-11-07 13:45:43 +00:00
Neil Brown
fbbe539bc0 Changed the types in FlowGraphTest to match the changes to FlowGraph 2007-11-07 13:30:44 +00:00
Neil Brown
08a8f80722 Changed the types and implementation of the buildFlowGraph function to add the new ASTModifier functions.
This patch is very large, because it contains all the required changes.  Buried in there is a change in how Options are processed in Case statements; they are no longer shoe-horned into ExpressionLists, but rather create a Node for each Expression and chain them together.
2007-11-07 13:22:56 +00:00
Neil Brown
9ca3cf0f86 Changed the node type in the control flow graph to add a modification function, and adjusted the types of the other graph types accordingly 2007-11-07 13:17:15 +00:00
Neil Brown
4539745dff Introduced scoped type variables into the signature of flowAlgorithm 2007-11-07 13:00:10 +00:00
Neil Brown
13cf7df8bf Added functions for helping to decompose the AST and map functions over it 2007-11-07 11:26:07 +00:00
Neil Brown
3b43411d4e Changed the type of findReachDef, implemented it, and wrote some basic tests for it (that pass) 2007-11-02 23:47:20 +00:00
Neil Brown
341e324415 Added an export list to the RainUsageCheck module 2007-11-02 16:46:42 +00:00
Neil Brown
093447dd24 Added a skeleton function for findReachDef, along with the start of some tests for it 2007-11-02 16:46:20 +00:00
Neil Brown
5f57803616 Moved assertEither and assertEitherFail into TestUtil 2007-11-02 16:44:10 +00:00
Neil Brown
4bb2b2a407 Moved mapPair into Utils, and renamed it to transformPair (to be consistent with the pre-existing transformX functions) 2007-11-02 16:44:02 +00:00
Neil Brown
b291901f5c Changed the flowAlgorithm function to have an error return (of type String) 2007-11-02 14:00:45 +00:00
Neil Brown
153a1823a7 Changed the tests for checkInitVar so that they display the new error return upon failure 2007-11-02 11:45:22 +00:00
Neil Brown
8472f991d0 Added error return to the checkInitVar function, and also changed it to use the new extended Set implementation, which in turn allowed me to fix the bug in the checkInitVar function (defVal is Everything, not the empty set) 2007-11-02 11:44:04 +00:00