-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs/lang0] simple README.md like inet
- Loading branch information
Showing
4 changed files
with
35 additions
and
31 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,8 @@ | ||
--- | ||
title: Interpreter v.s. Virtual Machine | ||
date: 2024-03-29 | ||
--- | ||
|
||
Note that, when implementing lambda calculus as an interpreter, | ||
the depth of the call stack is limited by the hosting language. | ||
To avoid this limitation we should implement lambda calculus by machine like SECD. |
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,17 +1,13 @@ | ||
# Lang1 | ||
|
||
## Statements | ||
```scheme | ||
;; Statement keywords: | ||
``` | ||
define -- (define name body) | ||
(define (name arg ...) body) | ||
``` | ||
(define name body) | ||
(define (name arg ...) body) | ||
## Expressions | ||
;; Expression keywords: | ||
``` | ||
var -- name | ||
ap -- (target arg ...) | ||
fn -- (lambda (name) ret) | ||
let -- (let ((name exp) ...) body) | ||
(lambda (name) ret) | ||
(let ((name exp) ...) body) | ||
``` |