Skip to content

codetesla51/logos

Repository files navigation

Logos

Logos

Scripts that read like thoughts.

Docs · Website · Releases


Logos (from Greek — word, reason, logic) is a scripting language built for clarity. A CLI-first language with readable syntax, proper error handling, and code you can come back to a week later and still understand.

use "std/array"

let devs = [
  table{name: "Alice", lang: "Go", years: 2},
  table{name: "Bob",   lang: "Python", years: 1},
  table{name: "Carol", lang: "Go", years: 3},
]

let results = devs
  |> filter(fn(d) -> d.lang == "Go")
  |> map(fn(d) -> "${d.name} — ${d.years} yrs")

for i, dev in results {
  i++
  print("  ${i}. ${dev}")
}

Highlights

  • Readable syntax — C-like, favors clarity over cleverness
  • String interpolation"hello ${name}" built in
  • Pipe operator — chain transforms with |>
  • Result-based errors{ok, value, error} instead of exceptions
  • Try expression — propagate errors without boilerplate
  • Built-in HTTP, JSON, file I/O — batteries included
  • Concurrency — lightweight spawn blocks
  • Compile to binarylgs build script.lgs produces a standalone executable
  • Embeddable — drop into any Go project via github.com/codetesla51/logos/logos

Install

curl -fsSL https://raw.githubusercontent.com/codetesla51/logos/main/install.sh | sh

Works on Linux and macOS. Picks the correct binary for your OS and architecture automatically.

Quick Start

lgs script.lgs        # run a script
lgs                   # start the REPL
lgs fmt script.lgs    # format code
lgs build script.lgs  # compile to a standalone binary
lgs --help            # show all commands

Docs

Full documentation at logos-lang.vercel.app/docs

Contributing

Contributions are welcome — examples, stdlib utilities, bug fixes, or docs improvements. Open an issue or PR on GitHub.

License

MIT

About

Logos is a readable scripting language with C-like syntax, sane error handling, built-in concurrency, and binary compilation.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages