diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-04-13 07:53:06 +0200 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-04-13 07:53:06 +0200 |
commit | f615f0a11ce5915fbec3ef9545bb2a087258f8aa (patch) | |
tree | 07dc52b9e19e22640b7b4d82bf4203e32718cac4 /doc | |
parent | 1b6d0c364d2f1e204c4dbeb61ee5e6ab3d316275 (diff) |
add note about missing docs
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guide.pandoc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/guide.pandoc b/doc/guide.pandoc index 48a9f3dc..d70a8175 100644 --- a/doc/guide.pandoc +++ b/doc/guide.pandoc | |||
@@ -1,5 +1,13 @@ | |||
1 | % LambdaCube 3D compiler developer's documentation and ideas | 1 | % LambdaCube 3D compiler developer's documentation and ideas |
2 | 2 | ||
3 | Introduction | ||
4 | ============ | ||
5 | |||
6 | The documentation is written on demand. | ||
7 | If you are interested in an undocumented feature, please open an issue with a short message like | ||
8 | "Documentation on ... is missing." | ||
9 | |||
10 | |||
3 | Compiler structure overview | 11 | Compiler structure overview |
4 | ================== | 12 | ================== |
5 | 13 | ||
@@ -782,6 +790,22 @@ In fact, the rich context is very close to the zipper of expressions. | |||
782 | The type inference algorithm becomes tails recursive if its arguments are the rich context and the subexpression. | 790 | The type inference algorithm becomes tails recursive if its arguments are the rich context and the subexpression. |
783 | 791 | ||
784 | 792 | ||
793 | Bidirectional type checking | ||
794 | --------------------------- | ||
795 | |||
796 | |||
797 | |||
798 | ~~~~~ {.haskell} | ||
799 | infer :: Context -> SourceExp -> Maybe TypedExp | ||
800 | ~~~~~ | ||
801 | |||
802 | ~~~~~ {.haskell} | ||
803 | check :: Context -> SourceExp -> Type -> Maybe TypedExp | ||
804 | ~~~~~ | ||
805 | |||
806 | |||
807 | |||
808 | |||
785 | Insertion of metavariables | 809 | Insertion of metavariables |
786 | -------------------------- | 810 | -------------------------- |
787 | 811 | ||