Commit Graph

74 Commits

Author SHA1 Message Date
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
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
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
ece4578b4d Add tuple sections. 2016-12-31 19:11:51 -08:00
Robbie Gleichman
3ed4c846bb Remove hardcoded port numbers from Translate.hs. 2016-12-29 00:15:17 -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
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
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
4ca53c58c4 Allow case icon to embed apply and pattern apply icons. 2016-12-24 14:46:53 -08:00
Robbie Gleichman
160d66a452 Delete generalGuardIcon. 2016-12-22 20:28:49 -08:00
Robbie Gleichman
fa67d61e84 Delete ResultIcon. 2016-12-22 19:51:22 -08:00
Robbie Gleichman
9523dcd609 Case and guard icons can now embed literals. 2016-12-19 20:27:31 -08:00
Robbie Gleichman
0185257444 Fix some instances of <$> not being converted to fmap. 2016-12-18 21:15:59 -08:00
Robbie Gleichman
dd43ebd994 Delete BranchIcon and BranchNode. 2016-12-17 17:13:36 -08:00
Robbie Gleichman
04787c62ff Remove coerceExpressionResult from evalPatAndRhs. This removes branch icons from cases. 2016-12-17 15:25:10 -08:00
Robbie Gleichman
7ac515ceaa Rename and refactor exported translation functions in Translate.hs. 2016-12-15 22:58:19 -08:00
Robbie Gleichman
00f6d4bd31 Turn some lambda tests into unit tests. 2016-12-15 17:12:16 -08:00
Robbie Gleichman
ec0bf8adf7 Add pattern unit tests. 2016-12-14 01:10:18 -08:00
Robbie Gleichman
f2fd136ac9 Move enum and negate tests into UnitTests. Update .cabal. 2016-12-14 00:30:03 -08:00
Robbie Gleichman
5d5074cced Reduce warnings. 2016-12-13 23:21:34 -08:00
Robbie Gleichman
d24642dfe8 Add more let unit tests. 2016-12-13 23:13:43 -08:00
Robbie Gleichman
aeb877ced7 Enable more unit tests by renaming nodes in the syntax graphs. 2016-12-13 15:26:24 -08:00
Robbie Gleichman
aa5aa82801 Add infix and section unit tests. Fix left sections not being applied fully. 2016-12-13 01:53:04 -08:00
Robbie Gleichman
c5281d6280 Add apply and compose apply unit tests. 2016-12-12 23:02:48 -08:00
Robbie Gleichman
ebf27d4e53 Break up tests into several files. 2016-12-12 18:47:12 -08:00
Robbie Gleichman
dc09f976cc Replace (<$>) with fmap. 2016-12-12 01:06:21 -08:00
Robbie Gleichman
24cbfb6414 Add compose infix operator (.) translations. 2016-12-11 22:19:23 -08:00
Robbie Gleichman
c8649945c3 Cycle colors for nested apply. 2016-12-09 00:35:19 -08:00
Robbie Gleichman
63a5213ca4 Compose nested node. 2016-12-08 21:38:43 -08:00
Robbie Gleichman
1150fbb63a Add flat compose icon. 2016-12-08 19:19:47 -08:00
Robbie Gleichman
07b4f9bdb2 Add back pattern nesting in Translate.hs. 2016-12-06 21:09:04 -08:00
Robbie Gleichman
078a3305bf Add and embedding Map to SyntaxGraph. 2016-12-06 18:39:38 -08:00
Robbie Gleichman
5e1d724418 Change node identifier from string to Int. Now, data NameAndPort = NameAndPort NodeName (Maybe Port), where NodeName and Port are both Int newtypes. 2016-12-06 17:02:54 -08:00
Robbie Gleichman
d3c463d41f Pretty print graphs in tests. 2016-12-06 13:45:12 -08:00
Robbie Gleichman
9fd08c7432 Add test for improper pattern nesting. 2016-12-05 17:14:54 -08:00
Robbie Gleichman
0f9c4d5b80 Generalize the number type in SepcialQDiagram 2016-12-02 19:43:03 -08:00
Robbie Gleichman
59cd6757fe Rotate nodes with bezier curve edges. 2016-12-02 17:21:13 -08:00
Robbie Gleichman
e9abde2c8b Change the order of TransformableDia so Name is first. 2016-12-02 13:19:01 -08:00