Commit Graph

44 Commits

Author SHA1 Message Date
Robbie Gleichman
989a8f520e Refactor Rendering.hs to use IngSyntaxGraph instead of Drawing. Eliminate warnings in AllTests. 2016-11-30 20:45:50 -08:00
Robbie Gleichman
582528d74e Remove sub-Drawings from Drawing. 2016-11-28 13:55:26 -08:00
Robbie Gleichman
b393acd949 Add bezierArrowShaft that can draw an arrow shaft with its ends at parameterized angles. 2016-11-28 13:31:13 -08:00
Robbie Gleichman
02446b5b15 Reduce GHC warnings. 2016-11-27 17:25:30 -08:00
Robbie Gleichman
cab045da4b Extract the Graphviz parameters in Rendering.hs so they can be reused by renderFglGraph. 2016-11-03 14:52:22 -07:00
Robbie Gleichman
973674054e Remove (&) and (#), add tests. 2016-05-09 23:45:37 -07:00
Robbie Gleichman
dd758a38ad Translate nested icons. Fix nested icons missing edges in GraphViz graph. 2016-04-08 23:54:59 -07:00
Robbie Gleichman
4c0e37949b More type simplification. 2016-03-27 16:55:25 -07:00
Robbie Gleichman
287b477d1b Simplify types. 2016-03-27 16:49:58 -07:00
Robbie Gleichman
f331e8dca8 Change icon transformation to make it more composable. 2016-03-27 14:17:50 -07:00
Robbie Gleichman
80673a35ca Adjust overlaps. 2016-03-26 16:38:25 -07:00
Robbie Gleichman
cab82b66dd Keep text upright. 2016-03-21 21:14:41 -07:00
Robbie Gleichman
ceb361f693 Lambdas now use a simple icon, not nested Drawings. 2016-03-21 02:00:04 -07:00
Robbie Gleichman
5818f286e6 Add NegExp, List patterns, changes for bootstrapping. 2016-03-05 22:26:03 -08:00
Robbie Gleichman
2b831cfe45 Switch back to circles for GraphViz. 2016-03-04 13:53:19 -08:00
Robbie Gleichman
b2a9427e57 Give edges in patterns a special color. 2016-02-25 18:37:04 -08:00
Robbie Gleichman
ec0a5c0843 Tuples 2016-02-23 23:14:00 -08:00
Robbie Gleichman
8006a97721 Fix arrow border width. 2016-02-10 00:46:44 -08:00
Robbie Gleichman
43c918300e Fix diagram naming and qualification. Remove Apply0Icon. 2016-02-09 23:50:38 -08:00
Robbie Gleichman
d213bf4215 Translate now uses Apply0N 2016-02-09 18:58:28 -08:00
Robbie Gleichman
d08c9733ad Rudimentry function translation. 2016-02-07 18:01:57 -08:00
Robbie Gleichman
009f7b0b30 Add NameAndPort data type. Translate works with simple functions. 2016-02-04 21:53:21 -08:00
Robbie Gleichman
d3b38bb491 Upgrade to LTS-5.0, start on using haskell-src-exts to generate drawings from text. 2016-02-04 00:19:08 -08:00
Robbie Gleichman
3a34c26cdc Changes suggested by -Wall 2016-01-26 15:29:02 -08:00
Robbie Gleichman
e8c0910fb2 Better point unwrapping. 2016-01-26 13:24:10 -08:00
Robbie Gleichman
b04b21b29d Cleanup and add comments. 2016-01-23 14:47:02 -08:00
Robbie Gleichman
5e34428b50 Remove the backend as an import for all files except Main.hs. Add type signitures. 2016-01-22 19:42:15 -08:00
Robbie Gleichman
cc058bb321 Move toNames and Edge constructors to Util.hs. 2016-01-22 18:28:55 -08:00
Robbie Gleichman
77761e9611 Add argument dots to Apply0N. Add a fact2 example that uses the apply argument to distrubute the factorial function argument. 2016-01-22 18:08:53 -08:00
Robbie Gleichman
3c105a7a89 Fix arrow heads and tails. 2016-01-22 17:06:42 -08:00
Robbie Gleichman
b68a9c88d1 clean up main. Make arrows slightly smaller. 2016-01-22 01:38:28 -08:00
Robbie Gleichman
e2e541a5dc Add color schemes 2016-01-21 13:35:34 -08:00
Robbie Gleichman
0d77eaf47a Change EndAp1Arg arrow style. 2016-01-20 20:00:53 -08:00
Robbie Gleichman
90cbfbc1f1 Use arrow heads and tails for factorial. 2016-01-20 19:37:03 -08:00
Robbie Gleichman
9cf6722241 Add support for arrow heads and tails. 2016-01-20 18:24:42 -08:00
Robbie Gleichman
d5e0b6bf63 Add Apply0N, extract types to Types.hs, add end options to Edge type. 2016-01-20 16:48:30 -08:00
Robbie Gleichman
e311a9b38f Tell GraphViz to use round nodes. 2016-01-19 15:52:56 -08:00
Robbie Gleichman
0985291c80 Flip diagrams when that results in shorter line distances. 2016-01-19 03:08:53 -08:00
Robbie Gleichman
97c84d27e5 Rotate diagrams to minimize total line distance. 2016-01-18 23:51:14 -08:00
Robbie Gleichman
4de1e369b1 Guards, branch, simple factorial example. 2016-01-13 15:08:08 -08:00
Robbie Gleichman
954e7c5829 Give graphviz the width and height of the nodes. 2016-01-13 00:48:35 -08:00
Robbie Gleichman
636a2ee5b0 Clean up and test recursive drawings. 2016-01-09 19:17:22 -08:00
Robbie Gleichman
2ac3ee04a7 clean up 2016-01-08 21:52:41 -08:00
Robbie Gleichman
120dc18b88 Moved functions from Main to Rendering 2016-01-08 19:54:07 -08:00