Commit Graph

257 Commits

Author SHA1 Message Date
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
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
Robbie Gleichman
8267305950 Update to lts-8.23. Changes in Translate.hs due to changes in haskell-src-exts. 2017-07-18 23:47:28 -07:00
Robbie Gleichman
b6171533c5 Use a variable for the set of rotation angles. 2017-07-18 19:11:57 -07:00
Robbie Gleichman
4ab6c09cf4 Remove unused extension for Types.hs. Update todo. 2017-02-21 20:10:00 -08:00
Robbie Gleichman
798466004c Fix ports for case rhs and patterns being switched. Revise tutorial. 2017-01-05 17:52:14 -08:00
Robbie Gleichman
96c10d9e4e Update Stackage to lts-7.14 2017-01-05 02:23:02 -08:00
Robbie Gleichman
71f6d55df3 Use customRenderSVG in Main.hs. Change font to monospace. Use optparse-applicative for Main. 2017-01-04 01:22:08 -08:00
Robbie Gleichman
69589f7d24 Make a custom version of renderSVG that includes the xml:space=preserve attribute. This preveres whitespace in svg text. 2017-01-03 18:43:33 -08:00
Robbie Gleichman
4b0d32d034 Add pattern names to PApp. 2017-01-02 00:37:27 -08:00
Robbie Gleichman
9702cabc29 Add parameter names to lambda icon. 2017-01-01 17:43:00 -08:00
Robbie Gleichman
dc3b0c5875 Refactor evalRightSection and evalTuple to use applicative instead of monad. 2016-12-31 22:32:57 -08:00
Robbie Gleichman
f94265e8f2 Refactor evalCase to use applicative instead of monad. 2016-12-31 19:44:43 -08:00
Robbie Gleichman
eaa90e5a9f Change parameter order for makeApplyGraph. 2016-12-31 19:20:01 -08:00
Robbie Gleichman
ece4578b4d Add tuple sections. 2016-12-31 19:11:51 -08:00
Robbie Gleichman
a63ab098b5 Refactor out common part of evalPatAndRhs and evalPatBind. 2016-12-30 02:15:43 -08:00
Robbie Gleichman
c95abcdc1f Extract out makeGuardGraph function in TranslateCore.hs. Clean up Translate.hs. 2016-12-29 23:40:10 -08:00
Robbie Gleichman
54eaa391be Use constants for port numbers in Icons.hs. 2016-12-29 00:55:59 -08:00
Robbie Gleichman
90c3ad8832 Remove hardcoded port numbers from TranslateCore.hs. 2016-12-29 00:38:05 -08:00
Robbie Gleichman
3ed4c846bb Remove hardcoded port numbers from Translate.hs. 2016-12-29 00:15:17 -08:00
Robbie Gleichman
7873645ef1 Create a function resultPort for getting the result port number. 2016-12-27 21:02:11 -08:00
Robbie Gleichman
a71500b099 Refactor makePatternGraph. 2016-12-27 20:40:50 -08:00
Robbie Gleichman
e0554fb819 Move functions out of Types.hs. 2016-12-27 15:14:01 -08:00
Robbie Gleichman
959be858a7 Remove parameter from getUniqueName. 2016-12-27 14:58:09 -08:00
Robbie Gleichman
f2f54d9c3b Turn SgNamedNode into a data type. 2016-12-27 01:32:51 -08:00
Robbie Gleichman
7ab8d2d442 Make GraphAndRef a data type. 2016-12-27 00:37:59 -08:00
Robbie Gleichman
631a7a20d1 Use SyntaxGraph constructors in TranslateCore. 2016-12-26 17:01:14 -08:00
Robbie Gleichman
5c399b9e50 For SyntaxGraph, use a data type (SgSink) for sinks. 2016-12-26 16:52:04 -08:00
Robbie Gleichman
771f9a7cc3 For SyntaxGraph, rename sgSources to sgBinds, and use a data type (SgBind) instead of a tuple. 2016-12-26 16:37:10 -08:00
Robbie Gleichman
1fb31aaf81 Rearrange Translate.hs. 2016-12-26 01:25:14 -08:00
Robbie Gleichman
c426ff422a Fix @ (as patterns). 2016-12-25 21:45:58 -08:00
Robbie Gleichman
e876c6c401 Don't allow guards to embed PApps. 2016-12-25 17:24:26 -08:00
Robbie Gleichman
d7eb3749d9 Make the args of pattern apply nodes vertical to make embedding cases nicer. 2016-12-25 17:08:11 -08:00
Robbie Gleichman
79c15e2e86 Reflect the angles of the inner icons for nestedGuardPortAngles. 2016-12-24 16:05:15 -08:00