01_lisp

command
v0.0.0-...-b44ac9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: MIT, MIT Imports: 10 Imported by: 0

README

gisp

Simple (non standard) compiler of Lisp/Scheme to Go.

Includes

  • Lexer based on Rob Pike's Lexical Scanning in Go
  • Simple recursive parser, supporting ints, floats, strings, bools
  • TCO via loop/recur
  • AST generating REPL included

Build and Run

> go build && ./gisp
>>

From here you can type in forms and you'll get the Go AST back. To compile a file:

> ./gisp filename.gsp

Functions

+, -, *, mod, let, if, ns, def, fn, all pre-existing Go functions

See examples for some Project Euler solutions

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL