mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-09-28 07:17:41 +00:00
29 lines
486 B
Markdown
29 lines
486 B
Markdown
# vl
|
|
another lisp dialect
|
|
|
|
```lisp
|
|
(fun factorial (x)
|
|
(if (<= x 1)
|
|
1
|
|
(* x (factorial (- x 1)))))
|
|
|
|
(do
|
|
(print (factorial 7)))
|
|
```
|
|
|
|
Compliation flow:
|
|
```
|
|
Input(file) -> Parser -> Interpret(TODO)
|
|
String SExprs IO
|
|
|-> Compile(TODO)
|
|
File
|
|
```
|
|
|
|
Progress:
|
|
- [X] Lexer & Parser
|
|
- [ ] Syntax checker & Type checker
|
|
- [ ] Interpreter
|
|
- [ ] Compiler
|
|
|
|
Problems:
|
|
- Parser can't detect `(()))` syntax error. |