-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New settings for graphic constraint 1. Binding edge no longer rely on a number to identify its binding scope. It is now fully dynamic. 2. A topsort implementation has been added to the toolset. 3. Fixed a bug about least common ancestor in unification. 4. A instance relation "merge*" has been added by operator '|->'. 5. A new type instance relation named phantom node has been added, which is dedicated to solve self binding problem. It is now integrated into unification.
- Loading branch information
1 parent
933f786
commit 8fabf7e
Showing
28 changed files
with
718 additions
and
506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated from web app, for more information, see: https://fourmolu.github.io/config/ | ||
indentation: 2 | ||
column-limit: 70 | ||
function-arrows: leading | ||
comma-style: leading | ||
import-export-style: leading | ||
indent-wheres: true | ||
record-brace-space: true | ||
newlines-between-decls: 1 | ||
haddock-style: single-line | ||
haddock-style-module: multi-line | ||
let-style: auto | ||
in-style: right-align | ||
single-constraint-parens: auto | ||
single-deriving-parens: auto | ||
unicode: detect | ||
respectful: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,12 @@ | ||
module Driver.Transform | ||
( | ||
|
||
-- ** default definition for Graphic Type | ||
SurfaceG | ||
, SurfaceGNodes | ||
, SurfaceGEdges | ||
|
||
, UnifyGNodes | ||
, UnifyGEdges | ||
, UnifyG | ||
|
||
-- ** re-export subfunctionality | ||
, module GraphType | ||
module GraphType | ||
, module TypeGraph | ||
) | ||
where | ||
|
||
import Driver.Transform.GraphType as GraphType | ||
import Driver.Transform.TypeGraph as TypeGraph | ||
|
||
import Language.Core (Name, Label) | ||
import Language.Generic ((:+:)) | ||
import Graph.Extension.GraphicType | ||
import Graph.Core | ||
|
||
import Data.Text (Text) | ||
|
||
|
||
type SurfaceGNodes | ||
= T NodeBot :+: T (NodeLit Integer) :+: T (NodeLit Text) | ||
:+: T NodeTup :+: T NodeSum :+: T NodeRec :+: T (NodeRef Name) | ||
:+: T NodeApp :+: T (NodeHas Label) :+: T NodeArr | ||
:+: NodePht | ||
type SurfaceGEdges = T Sub :+: T (Binding Name) | ||
|
||
type SurfaceG = CoreG SurfaceGNodes SurfaceGEdges Int | ||
|
||
type UnifyGNodes | ||
= SurfaceGNodes | ||
:+: NDOrder | ||
:+: Histo :+: G | ||
|
||
type UnifyGEdges | ||
= SurfaceGEdges | ||
:+: Pht O :+: Pht Sub :+: Pht NDOrderLink | ||
:+: T Unify :+: T Instance | ||
|
||
type UnifyG = CoreG UnifyGNodes UnifyGEdges Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{-| * User interface module | ||
{- | * | ||
-} | ||
|
||
module EvalLoop.Loop | ||
|
Oops, something went wrong.