Fork of fe for calculators https://github.com/rxi/fe
Go to file
KikooDX 41a1d05969 yeah right 2021-11-19 16:26:18 +01:00
doc docs: fix simple typo, intialized -> initialized 2020-12-17 19:46:18 +11:00
scripts scripts whitespace 2019-04-10 19:39:21 +01:00
src yeah right 2021-11-19 16:26:18 +01:00
LICENSE Updated copyright year: 2019 => 2020 2020-04-05 15:22:16 +01:00
README.md Added doc/capi.md 2019-04-11 19:10:36 +01:00
build.bat Added build.bat 2020-10-27 20:29:29 +00:00
build.sh Added `build.sh` 2019-04-09 19:54:44 +01:00

README.md

fe

A tiny, embeddable language implemented in ANSI C

(= reverse (fn (lst)
  (let res nil)
  (while lst
    (= res (cons (car lst) res))
    (= lst (cdr lst))
  )
  res
))

(= animals '("cat" "dog" "fox"))

(print (reverse animals)) ; => ("fox" "dog" "cat")

Overview

  • Supports numbers, symbols, strings, pairs, lambdas, macros
  • Lexically scoped variables, closures
  • Small memory usage within a fixed-sized memory region — no mallocs
  • Simple mark and sweep garbage collector
  • Easy to use C API
  • Portable ANSI C — works on 32 and 64bit
  • Concise — less than 800 sloc

Contributing

The library focuses on being lightweight and minimal; pull requests will likely not be merged. Bug reports and questions are welcome.

License

This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.