mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
blspc | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
Makefile | ||
README.md |
bobbylisp
another lisp dialect
Also available on https://git.ablecorp.us/azur/bobbylisp
; example/s.blsp
(fun factorial (x)
(if (<= x 1)
1
(* x (factorial (- x 1)))))
(do
(print (factorial 7)))
Compliation flow:
Input(file) -> Parser -> Compile(Bytecode) -> Interpret(blvm)
String SExprs Bytecode IO
|-> Compile
Assembly(?)
Installation
$ make
or
$ make debug
The binary will be installed in ~/bin/blspc
run it with:
$ blspc -h
Example
$ blspc ./example/hello.blsp
$ blvm hello.bbb
Hello, World!
Progress:
- Lexer & Parser
- Syntax checker & Type checker
- Interpreter
- Compiler