1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-09-28 05:07:39 +00:00
Another lisp dialect (mirror)
Go to file
2022-02-11 18:07:32 +07:00
blspc feat: update makefile 2022-02-11 18:07:32 +07:00
blvm feat: some args handling 2022-02-11 18:07:32 +07:00
bobbylisp.code-workspace feat: init blvm 2022-02-11 18:07:32 +07:00
README.md feat: some args handling 2022-02-11 18:07:32 +07:00

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