Adam Sampson
fc1eee669c
Commit earlier on ? CASE
2007-04-05 18:02:40 +00:00
Adam Sampson
667731f892
Fix the case output ambiguity
2007-04-05 17:37:45 +00:00
Adam Sampson
0bf57b0222
Tidier original name handling; slightly better errors
2007-04-05 11:21:32 +00:00
Adam Sampson
9fd0ea58a1
Do port output too
2007-04-05 01:21:16 +00:00
Adam Sampson
7c9036ac9b
Track the types of all defined names properly
2007-04-05 01:14:14 +00:00
Adam Sampson
95af38e652
Handle whitespace better
2007-03-18 02:34:31 +00:00
Adam Sampson
4427333d2f
Fix (and clean up) indentation parsing
2007-03-18 01:56:10 +00:00
Adam Sampson
4be72cbb24
Move indentation parsing out to its own module
2007-03-18 01:51:41 +00:00
Adam Sampson
5e8076cab5
Fix string parsing
2007-03-18 01:46:47 +00:00
Adam Sampson
69c1c04e84
Add function for testing parser productions
2007-03-18 01:46:31 +00:00
Adam Sampson
4005c6e31d
Cleaner indentation parsing: put markers at end of line
2007-03-18 01:22:24 +00:00
Adam Sampson
88ea5303ff
Tidy up error reporting (still based on error for now, though)
2007-03-18 00:48:02 +00:00
Adam Sampson
da7667de62
Kill extraneous brackets
2007-03-17 14:46:15 +00:00
Adam Sampson
e2f4fe1c45
Don't scope tag names for now, and fix "foo ! CASE foo" parsing
2007-03-17 14:37:24 +00:00
Adam Sampson
4c20041ff4
Add state while parsing, and track/map names
2007-03-16 01:28:46 +00:00
Adam Sampson
7f5d5e1891
Separate out the different types of name
2007-03-14 16:06:55 +00:00
Adam Sampson
704aabac17
Reorganise and add folds
2007-03-14 05:29:44 +00:00
Adam Sampson
5b7ee6f3a4
" ; " -> "; "
2007-03-14 04:44:39 +00:00
Adam Sampson
ed27a08b93
Rework to parse straight to AST, and clean up the AST a bit
2007-03-14 04:43:00 +00:00
Adam Sampson
c8c7935905
First stuff for fco2 -- copied from fco
2007-03-13 15:37:55 +00:00
Adam Sampson
6dbb86f610
Add tracing/references slides
2006-10-31 21:32:12 +00:00
Adam Sampson
af9271a48e
Some nicer death code
2006-10-30 23:30:25 +00:00
Adam Sampson
181a084ab7
First draft of presentation
2006-10-30 23:30:10 +00:00
Adam Sampson
99d43e1fba
Another note
2006-10-30 23:29:40 +00:00
Adam Sampson
f7114b6c84
Include metadata in the AST
2006-10-18 17:09:35 +00:00
Adam Sampson
996f64702a
Unique naming working nicely
2006-10-18 14:36:31 +00:00
Adam Sampson
763f735a37
Unique naming sort-of working
2006-10-18 03:35:13 +00:00
Adam Sampson
a2cf9c0939
Add a clean rule
2006-10-17 21:57:24 +00:00
Adam Sampson
5cb2b2d248
Make Structured non-parametric, and experiment with a traversal strategy for scope tracking
2006-10-08 16:48:08 +00:00
Adam Sampson
d895b72a2b
More writeup
2006-10-08 16:47:35 +00:00
Adam Sampson
04ce526824
Remove Test.hs -- it's all in the main code now
2006-10-07 11:26:19 +00:00
Adam Sampson
4a99213bb3
Add first version of writeup
2006-10-06 22:57:20 +00:00
Adam Sampson
7b6258184e
Add basic C output support (not compilable yet!)
2006-10-06 01:17:58 +00:00
Adam Sampson
7d4e79e56b
Move testcases into their own directory, and give them better names
2006-10-05 12:52:40 +00:00
Adam Sampson
ed54025468
Fix the a[b] ambiguity by tweaking the parser; also make AST Conversions include the type
2006-10-05 12:45:30 +00:00
Adam Sampson
5f697e8286
Tag parse tree nodes with source position metadata while parsing
2006-10-05 00:08:57 +00:00
Adam Sampson
d82e37c111
Don't actually strip indentation off the source code
2006-10-04 22:44:25 +00:00
Adam Sampson
29073f87ad
Doesn't need List any more
2006-10-04 22:31:22 +00:00
Adam Sampson
dcf10067b6
Add PrettyShow, and make all the output pretty-printed
2006-10-04 22:29:49 +00:00
Adam Sampson
b546c0fdcb
Clean up PT
2006-10-04 17:10:52 +00:00
Adam Sampson
93fda75946
Scrap my boilerplate.
...
That is, convert this all to use Data.Generics, which makes the code a lot
cleaner and avoids needing to autogenerate passthrough functions.
Rename some modules too.
2006-10-04 17:08:14 +00:00
Adam Sampson
fb01714fc1
Parse tree to AST conversion (still some parser bugs)
2006-10-03 11:06:55 +00:00
Adam Sampson
6145c5aad2
Get N.Sub args the right way round
2006-10-03 10:44:50 +00:00
Adam Sampson
a503385f6f
Update spec to match what the code now produces for inputs
2006-10-03 00:23:42 +00:00
Adam Sampson
eae0f9d1d8
Clean up the tree representation of inputs
2006-10-03 00:22:47 +00:00
Adam Sampson
0f5a6ae805
Represent formals with a list of names declared in Tree
2006-10-02 22:32:14 +00:00
Adam Sampson
51c1144ca7
Represent subscripts in a more general way in Tree
2006-10-02 22:31:32 +00:00
Adam Sampson
42e46b1d23
Make monadic and dyadic ops use a common node (rather than one per op)
2006-10-02 21:23:02 +00:00
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