crosslang/golang-lean/GolangLean/Builtins.lean
Maximus Gorog fd3d42ae33 Add 'golang-lean/' from commit 'f5f17019224c6a6c319387214ceb8e29d09251c6'
git-subtree-dir: golang-lean
git-subtree-mainline: 6487c7046f
git-subtree-split: f5f1701922
2026-05-12 02:59:14 -06:00

18 lines
585 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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