Commit Graph

409 Commits

Author SHA1 Message Date
Robbie Gleichman
2460a3f472 Embed lambdas as arguments. Make apply and lambda argumenet/parameter boxes transparent to make line crossings look better. 2019-08-06 02:33:01 -07:00
Robbie Gleichman
ff761f8db8 Make the embedMap a Map. 2019-07-31 12:01:37 -07:00
Robbie Gleichman
aa63e6107a Use a Set instead of a list for lambda enclosed nodes. 2019-07-25 23:52:14 -07:00
Robbie Gleichman
164d837a10 Change emEmbedded in Embedder from a list to a Set. 2019-07-25 00:45:20 -07:00
Robbie Gleichman
91b4a6545a Change addChildrenToNodeLabel to addChildToNodeLabel. 2019-07-25 00:25:39 -07:00
Robbie Gleichman
ae81f02448 Update todo 2019-07-19 00:39:47 -07:00
Robbie Gleichman
6e04814723 Use Embedder for case and multi-if. 2019-07-19 00:35:31 -07:00
Robbie Gleichman
b1fad71a0c Wrap all SyntaxNodes in an Embedder type which has the names of that node's embedded nodes. 2019-07-18 02:40:09 -07:00
Robbie Gleichman
794117abd0 Update todo. 2019-06-29 16:13:17 -07:00
Robbie Gleichman
e2fbf955db Fix GraphAlgorithms to enable lambdas to embed. 2019-06-29 16:04:44 -07:00
Robbie Gleichman
b63cdef55e Replace NamedIcons with NodeNames in some Icon constructors. 2019-06-28 23:10:20 -07:00
Robbie Gleichman
c1e1682b1d Undo embed literal lambda bodies since collapseAnnotatedGraph is buggy. 2019-06-16 13:02:42 -07:00
Robbie Gleichman
11fbdfebd8 Embed literal lambda bodies. 2019-05-10 23:10:57 -07:00
Robbie Gleichman
ec6837165a Add Constants.hs. 2019-04-02 01:49:48 -07:00
Robbie Gleichman
2ddb5c8a09 Make constants for input and result port numbers. 2019-03-28 23:50:07 -07:00
Robbie Gleichman
04ddca3c1b Update todo 2019-03-25 01:12:43 -07:00
Robbie Gleichman
2d74cb2fd1 Embed lambda nodes in apply parents. 2019-03-12 22:43:58 -07:00
Robbie Gleichman
96aaaa2319 Update todo.md. 2019-02-25 01:49:42 -08:00
Robbie Gleichman
96be8aa835 Simplify and rename SyntaxNodes. 2019-02-25 01:48:17 -08:00
Robbie Gleichman
21e0091743 Refactor GraphAlgorithms.hs. 2019-02-19 03:21:13 -08:00
Robbie Gleichman
b21ff534e8 Give lines a shadow effect. 2019-01-19 11:41:54 -08:00
Robbie Gleichman
54ed0dda18 Rename guard to multiIf. 2019-01-12 00:55:13 -08:00
Robbie Gleichman
7d3ec604e3 Add functions to convert from Simple Syntax back to Haskell AST. 2019-01-12 00:39:08 -08:00
Robbie Gleichman
b82e5f3b93 Support MultiWayIf. 2019-01-08 21:29:51 -08:00
Robbie Gleichman
34e054133f Refactor matchesToFunBind. 2019-01-04 18:00:06 -08:00
Robbie Gleichman
10fe364e76 Support data declarations. 2019-01-04 15:34:03 -08:00
Robbie Gleichman
e18b2a1bd8 Small refactors in SimplifySyntax. 2019-01-03 17:47:00 -08:00
Robbie Gleichman
e2f6f472cb Cleanup VisualTranslateTests. 2019-01-03 15:51:27 -08:00
Robbie Gleichman
3523e44399
Rewrite Translate.hs to use SimplifySyntax (#4)
* Create branch for in-progress SimplifySyntax work.

* Translate more simple syntax. Improve flat lambda icon. Remove function binds from simple syntax.

* Translate SeApp.

* Fix simplifyExp.

* Translate SpApp and SeCase.

* Translate SeGuard.

* Translate @ patterns and pattern wild cards.

* Transtlate list and tuple patterns.

* Translate tuple and list expressions.

* Translate left sections.

* Translate Do notation.

* Cleanup Translate.hs.

* Translate type signatures.

* More cleanup of Translate.hs.

* Translate negate function application and enum syntax.

* Rename functions in Translate.hs.
2019-01-03 15:41:34 -08:00
Robbie Gleichman
d39e00e7a1 Move helper functions from Translate to SimplifySyntax. 2018-12-09 21:04:58 -08:00
Robbie Gleichman
b539c18c4e Add more to SimplifySyntax. 2018-12-09 20:02:35 -08:00
Robbie Gleichman
ee53213252 Remove state from matchesToCase. 2018-12-08 16:03:29 -08:00
Robbie Gleichman
3b55075fd5 Add more to SimplifySyntax. 2018-11-30 01:39:14 -08:00
Robbie Gleichman
29f03483f7 Add in-progress SimplifySyntax.hs. 2018-11-29 00:26:47 -08:00
Robbie Gleichman
ddd8475d5e Cleanup Rendering.hs. 2018-11-12 01:02:12 -08:00
Robbie Gleichman
9380cb6ea2 Improve formatting of GraphAlgorithms.hs and Types.hs. 2018-11-12 00:21:50 -08:00
Robbie Gleichman
9e7d01ab82 Cleanup and improve formatting. 2018-11-11 23:13:19 -08:00
Robbie Gleichman
5b8d4d598c Fix warnings in VisualRenderingTests.hs. 2018-11-11 17:15:04 -08:00
Robbie Gleichman
296df8e497
Update tutorial image in README 2018-11-11 03:24:47 -08:00
Robbie Gleichman
9d9862539d Draw bounding boxes for lambdas. 2018-11-11 03:17:06 -08:00
Robbie Gleichman
0a221f3971 Refactor generalNestedDia and nestedPAppDia in Icons.hs. 2018-11-07 01:10:09 -08:00
Robbie Gleichman
484bba5cee Refactor NestedPApp and NestedPatternApplyNode. 2018-11-06 01:52:39 -08:00
Robbie Gleichman
17f1679015 Fix warnings. 2018-11-04 22:54:17 -08:00
Robbie Gleichman
7bb206e616 Delete non-nested pattern apply icon and syntax node. 2018-11-04 13:17:35 -08:00
Robbie Gleichman
33eac07c59 Remove non-nested apply and compose icons. 2018-11-04 12:20:19 -08:00
Robbie Gleichman
bc5ac3fa80 Remove context dependent coloring for text boxes in apply icons. 2018-11-04 02:51:01 -08:00
Robbie Gleichman
6f18d5f96d Extract the TransformableDia parameters to TransformParams. 2018-11-02 01:52:26 -07:00
Robbie Gleichman
7a854d9679 Simplify EdgeOption and EdgeEnd. 2018-10-30 00:53:36 -07:00
Robbie Gleichman
ccee42c23e Refactor the NestedApply Icon. 2018-10-28 02:16:17 -07:00
Robbie Gleichman
4b99c862a7 Update stackage. Replace (NodeName, Icon) with NamedIcon. 2018-10-28 00:25:31 -07:00