diff options
| author | Cliff Click <cliffc@acm.org> | 2024-09-05 09:40:02 -0700 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2024-09-07 10:54:48 -0700 |
| commit | cb1adaabe4f78a30937a93abdcc2dfddd65e6f99 (patch) | |
| tree | 5357422d77b8a2ddbd4137730530ecb406ad0770 /chapter04 | |
| parent | ec7f127c3b32e229ada9ee52def44d6f476c0a99 (diff) | |
| download | Simple-cb1adaabe4f78a30937a93abdcc2dfddd65e6f99.tar.gz Simple-cb1adaabe4f78a30937a93abdcc2dfddd65e6f99.zip | |
Updates README
More on Types, pushed out Arrays one more chapter
Diffstat (limited to 'chapter04')
| -rw-r--r-- | chapter04/README.md | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/chapter04/README.md b/chapter04/README.md index 1f300937..e1b28d3f 100644 --- a/chapter04/README.md +++ b/chapter04/README.md @@ -53,15 +53,19 @@ Start node. In [Chapter 2](../chapter02/README.md) we introduced the Type System. -We annotate Nodes with Types. - -The Type annotation serves two purposes: +We have annotated Nodes with Types and the Type annotation serves two purposes: * It defines the set of operations allowed on the Node, and * it defines the set of values the Node takes on. -The type itself is identified by the Java class sub-typing relationship; all -types are subtypes of the class `Type`. +We mentioned in [Chapter 2](../chapter02/README.md) that the set of values +associated with a Type at a specific Node can be conveniently represented as a +[lattice](https://en.wikipedia.org/wiki/Lattice_(order)). + +The type itself is identified by the Java class `Type` and subtypes. The type +implementation uses Java classes as convenient to deal with a Types' internal +structure - but the Java classes have no relation to a Type's place in the +lattice. In this chapter we extend the Type hierarchy as follows: @@ -73,10 +77,7 @@ Type +-- TypeTuple (New - represents multi-valued result) ``` -We mentioned in [Chapter 2](../chapter02/README.md) that the set of values associated with a Type at a specific Node -can be conveniently represented as a "lattice". - -Our enhanced Lattice looks like this. +Our enhanced Lattice looks like this:  |
