MCPcopy Index your code
hub / github.com/cloe-lang/cloe

github.com/cloe-lang/cloe @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
931 symbols 5,240 edges 201 files 237 documented · 25%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cloe

GitHub Action Coveralls Go Report Card License

logo

Cloe is the timeless functional programming language. It aims to be simple and practical.

Features

  • Functional programming
  • Immutable data
  • Lazy evaluation
  • Implicit parallelism, concurrency, and reactivity

Installation

go get -u github.com/cloe-lang/cloe/...

Go 1.8+ is required.

Documentation

Here.

Examples

Hello, world!

(print "Hello, world!")

HTTP server

(import "http")

(def (handler request)
  ((@ request "respond") "Hello, world!"))

(let requests (http.getRequests ":8080"))

..(map handler requests)

See examples directory for more.

License

MIT

Extension points exported contracts — how you extend this code

Value (Interface)
Value represents a value. [6 implementers]
src/lib/core/value.go
FunctionType (FuncType)
FunctionType represents a function.
src/lib/core/function.go
Parser (FuncType)
Parser is a type of parsers as a function which returns a parsing result or an error.
src/lib/parse/comb/parser.go

Core symbols most depended-on inside this repo

PApp
called by 417
src/lib/core/thunk.go
NewNumber
called by 381
src/lib/core/number.go
NewString
called by 248
src/lib/core/string.go
EvalPure
called by 237
src/lib/core/value.go
NewList
called by 209
src/lib/core/list.go
Equal
called by 131
src/lib/core/nil.go
NewSignature
called by 80
src/lib/core/signature.go
NewPositionalArgument
called by 79
src/lib/core/positional_argument.go

Shape

Function 573
Method 287
Struct 54
TypeAlias 9
Interface 6
FuncType 2

Languages

Go100%

Modules by API surface

src/lib/parse/parse.go47 symbols
src/lib/parse/parse_test.go27 symbols
src/lib/core/error.go26 symbols
src/lib/parse/comb/combinator_test.go24 symbols
src/lib/core/list.go24 symbols
src/lib/desugar/match/cases_desugarer.go22 symbols
src/lib/parse/comb/combinator.go21 symbols
src/lib/compile/builtins_test.go21 symbols
src/lib/core/list_test.go19 symbols
src/lib/core/dictionary_test.go19 symbols
src/lib/core/string_test.go17 symbols
src/lib/core/string.go17 symbols

For agents

$ claude mcp add cloe \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact