Saturday, July 27, 2024
Google search engine
HomeUncategorizedfe: A tiny, embeddable language implemented in ANSI C

fe: A tiny, embeddable language implemented in ANSI C

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Code




Latest commit

docs: fix simple typo, intialized -> initialized

ed4cda9

Files


Permalink

Failed to load latest commit information.

Type

Name

Latest commit message

Commit time

A tiny, embeddable language implemented in ANSI C

(“fox” “dog” “cat”)” dir=”auto”>

(= 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.

Read More

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments