mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
Compare commits
2 commits
fc4756d384
...
873241ad94
Author | SHA1 | Date | |
---|---|---|---|
Natapat Samutpong | 873241ad94 | ||
Natapat Samutpong | a7c9ab35e8 |
46
README.md
46
README.md
|
@ -20,36 +20,36 @@ end;
|
|||
Note: Everything in this project can be changed at anytime! (I'm still finding out what work best for lots of thing) if you have an idea, feel free to create an issues about it, or even create a PR! (I'd be very happy)
|
||||
|
||||
# How it works
|
||||
```sml
|
||||
```
|
||||
Source (.hz)
|
||||
| crates/main
|
||||
v
|
||||
│ crates/main
|
||||
│
|
||||
Lexer produce Token
|
||||
| crates/lexer
|
||||
v
|
||||
│ crates/lexer
|
||||
│
|
||||
Parser produce AST
|
||||
| crates/parser
|
||||
v
|
||||
│ crates/parser
|
||||
│
|
||||
Diagnostic(Parsing)
|
||||
| \ crates/diagnostic
|
||||
| \
|
||||
Pass Fail -> Print error -> Exit
|
||||
|
|
||||
v
|
||||
│ │ crates/diagnostic
|
||||
│ ╰ Fail -> Print error -> Exit
|
||||
Pass
|
||||
│
|
||||
│
|
||||
Lowerer(?) produce HIR
|
||||
| crates/hir
|
||||
v
|
||||
│ crates/hir
|
||||
│
|
||||
Diagnostic(Lowering)
|
||||
| \ crates/diagnostic
|
||||
v \
|
||||
Pass Fail -> Print error -> Exit
|
||||
|
|
||||
v
|
||||
│ │ crates/diagnostic
|
||||
│ ╰ Fail -> Print error -> Exit
|
||||
Pass
|
||||
│
|
||||
│
|
||||
Command Codegen produce C++
|
||||
(spawn) | crates/codegen
|
||||
| |
|
||||
v v
|
||||
clang++ -----*-----> Executable
|
||||
(spawn) │ crates/codegen
|
||||
│ │
|
||||
│ │
|
||||
clang++ ─────┴───── Executable
|
||||
(Command)
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue