~ribal/schema

Tiny and embeddable scripting language (wip)
chunk.c: update obj_print
chunk.h: add ObjFn
parser: define p_var()

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~ribal/schema
read/write
git@git.sr.ht:~ribal/schema

You can also use your local clone with git send-email.

#Schéma

A tiny embeddable scripting language.

#Features

  • Small codebase (C99).
  • Low memory usage.
  • Simple mark and sweep garbage collector.
  • Easy to read and parse.
  • One-pass compiler with precedence parsing.
  • Modular architecture.
  • Easy to use C API.

#Examples

#Fibonacci

fn fib(n):
	if n < 2:
		return n

	return fib(n - 2) + fib(n - 1)

print fib(35)

#LICENSE

schema is published under a ISC License. See LICENSE file for copyright and license details.