1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
Another lisp dialect (mirror)
Find a file
2022-02-11 18:07:32 +07:00
example feat: Expression generation for compiling 2022-02-11 18:07:32 +07:00
src feat: Expression generation for compiling 2022-02-11 18:07:32 +07:00
.gitignore feat: init 2022-01-22 06:43:50 +07:00
Cargo.lock feat: Expression generation for compiling 2022-02-11 18:07:32 +07:00
Cargo.toml feat: Expression generation for compiling 2022-02-11 18:07:32 +07:00
README.md feat: better error reporting 2022-02-11 18:05:43 +07:00

vl

another lisp dialect

(fun factorial [x]
    (if (<= x 1)
        1
        (* x (factorial (- x 1)))))

(def times 7)
(do
    (print (factorial times)))

Progress:

  • Lexer & Parser
  • Syntax checker & Type checker
  • Compiler

Problems:

  • Parser only detect the first error and quit.
  • Parser can't detect (())) syntax error.