-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Changes * Adds a `$SetReplaceTypeGraph` constant. * The constant contains the nicely formatted type graph. ## Examples * Examples below do not work directly because they use fake types. To try them out, do something like ```wl AppendTo[$ContextPath, "SetReplace`PackageScope`"]; ``` and then evaluate the definitions (line 15 to 81) from `typeSystem.wlt`. * Now, check `$SetReplaceTypeGraph`: ```wl In[] := $SetReplaceTypeGraph ``` <img width="830" alt="image" src="https://user-images.githubusercontent.com/1479325/110015421-7493ce80-7ce9-11eb-920d-068a2aad7353.png">
- Loading branch information
Showing
9 changed files
with
182 additions
and
18 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
Documentation/SymbolsAndFunctions/TypeSystem/$SetReplaceTypeGraph.md
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,20 @@ | ||
###### [Symbols and Functions](/README.md#symbols-and-functions) > [Type System](README.md) | ||
|
||
# $SetReplaceTypeGraph | ||
|
||
**`$SetReplaceTypeGraph`** gives the [`Graph`](https://reference.wolfram.com/language/ref/Graph.html) showing | ||
[types]($SetReplaceTypes.md) and [properties]($SetReplaceProperties.md) defined in *SetReplace* (including internal | ||
ones) and possible computation paths between them: | ||
|
||
```wl | ||
In[] := $SetReplaceTypeGraph | ||
``` | ||
|
||
<img src="/Documentation/Images/$SetReplaceTypeGraph.png" width="478.2"> | ||
|
||
It is a [`Graph`](https://reference.wolfram.com/language/ref/Graph.html) representation of a directed hypergraph with | ||
types and properties as vertices and implementations of translations and properties as edges. | ||
|
||
All vertices have the form `kind[name]`, where `kind` can be either [`SetReplaceType`](SetReplaceType.md), | ||
[`SetReplaceProperty`](SetReplaceProperty.md) or [`SetReplaceMethodImplementation`](SetReplaceMethodImplementation.md), | ||
and `name` is either a type specification or a symbol. |
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
8 changes: 8 additions & 0 deletions
8
Documentation/SymbolsAndFunctions/TypeSystem/SetReplaceMethodImplementation.md
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,8 @@ | ||
###### [Symbols and Functions](/README.md#symbols-and-functions) > [Type System](README.md) | ||
|
||
# SetReplaceMethodImplementation | ||
|
||
**`SetReplaceMethodImplementation`** represents a (usually internal) implementation of either a translation or a | ||
property. It has the implementation symbol as the only argument. | ||
|
||
It is used in vertex names of [`$SetReplaceTypeGraph`]($SetReplaceTypeGraph.md). |
7 changes: 7 additions & 0 deletions
7
Documentation/SymbolsAndFunctions/TypeSystem/SetReplaceProperty.md
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,7 @@ | ||
###### [Symbols and Functions](/README.md#symbols-and-functions) > [Type System](README.md) | ||
|
||
# SetReplaceProperty | ||
|
||
**`SetReplaceProperty`** represents a *SetReplace* property. It has the property symbol as its single argument. | ||
|
||
It is used in vertex names of [`$SetReplaceTypeGraph`]($SetReplaceTypeGraph.md). |
7 changes: 7 additions & 0 deletions
7
Documentation/SymbolsAndFunctions/TypeSystem/SetReplaceType.md
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,7 @@ | ||
###### [Symbols and Functions](/README.md#symbols-and-functions) > [Type System](README.md) | ||
|
||
# SetReplaceType | ||
|
||
**`SetReplaceType`** represents a *SetReplace* type. It has the type specification as its single argument. | ||
|
||
It is used in vertex names of [`$SetReplaceTypeGraph`]($SetReplaceTypeGraph.md). |
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