scheme-d icon indicating copy to clipboard operation
scheme-d copied to clipboard

Scheme interpreter in D. So incomplete it burns. Use chickenclisp package instead!

What's this?

scheme-d is an incomplete Scheme interpreter in D for an easy embeddable language.

Licenses

See UNLICENSE.txt

Usage

See: https://github.com/p0nce/scheme-d/blob/master/examples/repl/repl.d

Supported

A small part of R6RS is supported:

  • Types: double, string, bool, list, symbol, and closure (Scheme functions or D callbacks)
  • pre-defined operations: https://github.com/p0nce/scheme-d/blob/master/source/schemed/environment.d#L51
  • special forms: https://github.com/p0nce/scheme-d/blob/master/source/schemed/eval.d#L47

Unsupported features

A large part of R6RS is unsupported:

  • vectors (list is already implemented with D slices)
  • Scheme literals syntax for float, string or chars
  • quasi-quoting
  • Scheme numerical tower. Only double is provided
  • char type
  • \x escape sequence in strings

Bugs

  • symbols have too lax a grammar, should respect Extended alphabetic characters