Neil Brown
26dd2fa5c4
Renamed the TestUtil and TreeUtil modules to TestUtils and TreeUtils, to be consistent with the Utils module
2007-12-13 19:05:29 +00:00
Neil Brown
905e110e86
Added a function to FlowGraph for joining two sets of graph labelling functions together
2007-12-10 15:45:06 +00:00
Neil Brown
089091d59b
Added a safety check when building the flow graph
2007-11-10 23:18:01 +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
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
2141a7d6f2
Added AlterAST to FlowGraph's export list
2007-11-09 17:45:19 +00:00
Neil Brown
bacc3115e9
Added various general helper functions to the Utils module
2007-11-09 01:18:42 +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
13cf7df8bf
Added functions for helping to decompose the AST and map functions over it
2007-11-07 11:26:07 +00:00
Neil Brown
cbc6a70b30
Changed the control-flow graph generation to use the proposed function dictionary, and add the scope-out nodes
2007-10-28 18:26:09 +00:00
Neil Brown
adafbd2cc4
Added support (and tests) for if statements in the control-flow graph generation
2007-10-28 17:24:26 +00:00
Neil Brown
49228150cf
Refactored a couple of clauses in the building of the control-flow graph
2007-10-28 17:04:45 +00:00
Neil Brown
5c4bf74a75
Added support (and tests) for case statements in the control-flow graph
2007-10-28 16:31:15 +00:00
Neil Brown
bd14ed56ba
Changed the edge-labelling scheme in the control-flow graph to have beginpar/endpar nodes with matching ids
2007-10-28 14:55:43 +00:00
Neil Brown
b6d525fbb8
Added tests for while loops in the control-flow graph
2007-10-28 12:39:26 +00:00
Neil Brown
25f13e6c6f
Added more tests for the control-flow graph, for Specs in Structured items
2007-10-28 11:38:04 +00:00
Neil Brown
cf17814b98
Changed the types involved in the control-flow graph so that I can customise the Show implementation
2007-10-28 11:35:51 +00:00
Neil Brown
9b1cd56050
Changed the identifiers/values on graph nodes in the control-flow graph to be produced monadically, and altered the tests accordingly
2007-10-27 23:59:33 +00:00
Neil Brown
f0c552663b
Added the initial implementation of a module (and tests) for generating a control-flow graph from an AST
...
This implementation needs to be changed; it currently uses Meta as a primary key for nodes, but that isn't valid.
2007-10-27 21:18:55 +00:00