Neil Brown
c8b724d2be
Merged the latest set of changes from the trunk into the Polyplate branch
...
I also added the import list to all the Data.Generics imports in the tests (as I did for the other modules recently)
2009-04-10 20:38:29 +00:00
Neil Brown
8f767ff0d4
Made all the imports of Data.Generics have an import list
...
This makes sure that we catch all leftover instances of using SYB to do generic operations that we should be using Polyplate for instead. Most modules should only import Data, and possibly Typeable.
2009-04-09 15:36:37 +00:00
Neil Brown
a72b01ff02
Merged the latest changes from my usage checking into the polyplate branch
2009-02-10 17:11:24 +00:00
Neil Brown
b0a34eb3a8
Improved some of polyplate's documentation, and renamed routeIdentity to identityRoute to avoid confusion with routeId
2009-01-12 17:34:59 +00:00
Neil Brown
b94091a08c
Moved all of the Route stuff out into a new polyplate module
2008-12-14 22:47:07 +00:00
Neil Brown
229f2197af
Turned findMeta into a member of a FindMeta type-class
2009-04-09 11:13:37 +00:00
Neil Brown
e457d82f0c
Changed FUNCTIONs and PROCs to have optional bodies, and put all the externals into the AST (without bodies)
...
This may seem like an odd change, but it simplifies the logic a lot. I kept having problems with passes not operating on externals (e.g. functions-to-procs, adding array sizes, constant folding in array dimensions) and adding a special case every time to also process the externals was getting silly.
Putting the externals in the AST therefore made sense, but I didn't want to just add dummy bodies as this would cause them to throw up errors (e.g. in the type-checking for functions). So I turned the bodies into a Maybe type, and that has worked out well.
I also stopped storing the formals in csExternals (since they are now in csNames, and the tree), which streamlined that nicely, and stopped me having to keep them up to date.
2009-04-04 14:56:35 +00:00
Neil Brown
c315352647
Added information in the flow graph edges as to when a condition becomes non-usable (e.g. when the branches of an IF merge again)
2009-02-09 16:57:13 +00:00
Neil Brown
7f8ced3c3a
Upgraded the Par edges in the flow graph from Int to Integer, which makes the design a bit nicer
2009-02-09 16:08:59 +00:00
Neil Brown
b08ac42547
Augmented the flow graph building to store in each node a list of the names defined at that point
2009-02-08 18:41:30 +00:00
Neil Brown
3da315497a
Tidied up the flow graph stuff a little by changing the quintuple state into a record type
2009-02-08 18:17:57 +00:00
Neil Brown
76cfb4d8f5
Added route-identifiers for blank AST modifiers in the flow graph
2008-11-12 16:47:15 +00:00
Neil Brown
dc030acabe
Changed the FlowGraph stuff to use the new Route type (that includes identifiers) rather than the bare functions as it used to
2008-11-10 14:01:30 +00:00
Neil Brown
447a89eca5
Fixed up the tests for IF statements relating to the labelled sequential edges
2008-09-11 20:50:25 +00:00
Neil Brown
70139ad072
Added support for recording conditional expressions in the flow graph (based on IF and WHILE, at least)
2008-06-07 20:28:04 +00:00
Neil Brown
3a5881c14f
Added an optional flag to the ESeq edge label, ready to be used to indicate whether a condition was true on this branch or not
2008-06-06 18:34:50 +00:00
Neil Brown
fe1238d379
Added a helper operator to make the FlowGraph module a bit more readable
2008-06-06 18:23:03 +00:00
Neil Brown
d3c9d90f8d
Corrected a bug when wiring up specifications (specifically inside ALTs) in the flow graph
2008-06-06 16:06:03 +00:00
Neil Brown
41ff60cb78
Removed the Rep constructor from Structured and instead added a Rep constructor to SpecType
...
This way, all replicators are declared like other names, and their scope is considered replicated. This simplifies the code a little.
Fixes #55
2008-06-04 17:00:43 +00:00
Neil Brown
0746219984
Added support for recording terminator nodes (as well as root nodes) while building the flow graph
2008-05-30 17:15:52 +00:00
Neil Brown
60eb320ee0
Separated FlowGraph into two modules (the new one being FlowUtils)
2008-05-23 14:52:25 +00:00
Neil Brown
3daf82d318
Merged Alternative and AlternativeCond into a single Alternative item that always has a pre-condition
2008-04-03 14:52:37 +00:00
Neil Brown
ceafd77c1e
Removed Wait, GetTime and AlternativeWait (the old Rain time items) from the AST
2008-03-24 15:15:54 +00:00
Adam Sampson
8d06c3d180
Various tweaks to the Haddock comments to get it building with 0.8 again.
2008-02-28 14:20:34 +00:00
Neil Brown
5807c59edf
Moved the three Flow modules out to a new flow directory
2008-02-26 15:07:07 +00:00