Neil Brown
ba75f5b06c
Removed the initialiser expression on the Declaration item in the AST
2008-03-09 00:23:13 +00:00
Neil Brown
74838bcb80
Fixed functions to work again in the Rain parser, according to the new tests
2008-02-25 17:18:28 +00:00
Neil Brown
1fd85fbe51
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
Neil Brown
acd57d74de
Changed the A.Structured type to be parameterised
...
This patch is actually an amalgam of multiple (already large) patches. Those patches conflicted (parameterised Structured vs. changes to usage checking and FlowGraph) and encountered a nasty bug in darcs 1 involving exponential time (see http://wiki.darcs.net/DarcsWiki/ConflictsFAQ for more details). Reasoning that half an hour (of 100% CPU use) was too long to apply patches, I opted to re-record the parameterised Structured changes as this new large patch. Here are the commit messages originally used for the patches (which, as mentioned, were already large patches):
A gigantic patch switching all the non-test modules over to using parameterised A.Structured
Changed the FlowGraph module again to handle any sort of Structured you want to pass to it (mainly for testing)
A further gigantic patch changing all the tests to work with the new parameterised Structured
Fixed a nasty bug involving functions being named incorrectly inside transformInputCase
Added a hand-written instance of Data for Structured that allows us to use ext1M properly
Fixed a few warnings in the code
2008-02-05 19:40:27 +00:00
Neil Brown
741a01de5a
Removed various tab characters and replaced them with spaces
2008-01-26 19:38:24 +00:00
Neil Brown
25f2efb94c
Changed the existing Rain code (and tests) to use the new List type rather than the Array type
2007-10-25 10:13:17 +00:00
Neil Brown
6b95827cab
Added an optional initialiser-expression to Declaration in the AST, and changed the rest of the code accordingly
2007-10-24 23:50:00 +00:00
Neil Brown
e582f5e508
Changed the terminator in Rain source files from A.Main to A.Several (with an empty list), and updated the tests accordingly
2007-10-17 13:42:13 +00:00
Neil Brown
1c858e112c
Changed the occam and Rain parsers to return a Structured rather than a Process (which will simplify the generated ASTs)
2007-10-17 13:21:17 +00:00
Neil Brown
38c409d378
Added the -fwarn-unused-imports compiler option to warn about unused imports, and then set about pruning and ordering (mostly in my code) the import lists for all the modules
2007-09-27 13:13:46 +00:00
Neil Brown
d79de5a936
Rain: implemented parsing of wait guards
2007-09-26 23:34:55 +00:00
Neil Brown
5af96110c7
Rain: implemented the parsing of wait statements
2007-09-26 23:00:58 +00:00
Neil Brown
db4f05932b
Fixed a conflict between the old time-related patches and the new alt patches
2007-09-26 21:39:16 +00:00
Neil Brown
769dc3c79a
Rain: changed the if, while and each loops to require a block as their body, rather than just a statement.
2007-09-26 18:03:42 +00:00
Neil Brown
68c468fbea
Rain: added the parsing of else (skip) guards in alts
2007-09-26 19:56:22 +00:00
Neil Brown
205b090cef
Rain: implemented the parsing of alt statements
2007-09-26 19:40:04 +00:00
Neil Brown
1f298a8ff6
Rain: added parsing support for time
2007-09-19 12:04:11 +00:00
Neil Brown
ebf3040367
Rain: tidied up ParseRain a little
2007-09-19 12:03:24 +00:00
Neil Brown
a4453fe3c3
Rain: changed parse errors to report using dieP (with a Meta position) instead of just dieIO
2007-09-17 11:18:38 +00:00
Neil Brown
d92e042159
Moved the functions for converting between Meta and SourcePos (from Parsec) into a common ParseUtils module
2007-09-17 11:15:17 +00:00
Neil Brown
9965c7373e
Rain: removed an outdated comment
2007-09-15 21:20:41 +00:00
Neil Brown
3f573dabd5
Rain: corrected innerBlock to work sensibly with multiple declarations (particularly for the start of par blocks)
2007-09-14 12:53:26 +00:00
Neil Brown
ff9b0d6611
Rain: changed the innerBlock parser to work with the new rules for declarations in par blocks, and also simplified its output slightly
2007-09-14 12:22:12 +00:00
Neil Brown
59d86a0afc
Rain: stopped semi-colon being a valid statement by itself
2007-09-14 11:46:18 +00:00
Neil Brown
2ff46a9041
Rearranged the Rain source files, renamed a couple of Rain files, and changed the Makefile accordingly.
2007-09-10 17:28:57 +00:00