git-subtree-dir: golang-lean git-subtree-mainline:6487c7046fgit-subtree-split:f5f1701922
18 lines
585 B
Text
18 lines
585 B
Text
import GolangLean.Value
|
||
import GolangLean.Env
|
||
|
||
namespace GolangLean
|
||
|
||
/-! # Built-in functions and the predeclared identifiers.
|
||
|
||
Two layers in Go:
|
||
* Predeclared identifiers (`true`, `false`, `nil`, `iota`, basic types) — values.
|
||
* Built-in functions (`len`, `cap`, `make`, `new`, `append`, `copy`, `delete`,
|
||
`panic`, `recover`, `print`, `println`) — special forms in the spec.
|
||
* `fmt.*` and friends are *not* builtins; they live in package `fmt`.
|
||
|
||
Stub for now. -/
|
||
|
||
def emptyBuiltinTable : List (String × (Array Value → IO (Except String Value))) := []
|
||
|
||
end GolangLean
|