Commit Graph

14 Commits

Author SHA1 Message Date
Adam Sampson
acb785e85b Import Tree qualified, getting rid of the silly Oc prefix on all the types 2006-10-02 16:31:23 +00:00
Adam Sampson
792728b7aa Add nicer Haskell AST types, for use with Data.Generics 2006-10-02 16:23:03 +00:00
Adam Sampson
cc9de06860 Debugging information to stderr, and only shown if -v is given 2006-09-23 00:45:19 +00:00
Adam Sampson
2ae397f1e6 OcMod and OcRem are actually the same operator; kill OcMod 2006-09-23 00:06:53 +00:00
Adam Sampson
6baca4b641 Remove "unsure" comments
It's because I didn't understand properly how Parsec works -- when you say a
<|> b, everything in a runs (and fails) even if it didn't match...
2006-09-07 14:50:52 +00:00
Adam Sampson
344add99e9 Rework parser to commit sooner
Essentially just move around a lot of "try"s, and make the flattening code
preserve lines. This lets it give more useful error messages when it can't
parse something.
2006-09-07 02:38:51 +00:00
Adam Sampson
02abee3d7f Allow empty arg lists 2006-09-06 21:58:20 +00:00
Adam Sampson
85eb9fe33d Take a filename as a command-line arg, and use a marker process for main rather than SKIP 2006-09-06 19:56:16 +00:00
Adam Sampson
2e9d2123ad Add tree datatype, and rework parser to produce it instead of soccam 2006-09-06 17:38:57 +00:00
Adam Sampson
2f9fee375e Make usable as a filter. 2006-02-04 03:27:09 +00:00
Adam Sampson
2bb17d2d93 More work: it now parses my q7 (minus the # directives). 2006-02-04 03:19:00 +00:00
Adam Sampson
4d63b62a50 Mostly complete, now with newlines. 2006-02-04 01:48:21 +00:00
Adam Sampson
70a818cf32 More work. 2006-02-04 00:29:15 +00:00
Adam Sampson
38dbed77c4 Working snapshot of occam parser in Haskell. 2006-02-03 11:13:30 +00:00