From a7c9ab35e81e881828565790d55a5c6f819f390a Mon Sep 17 00:00:00 2001 From: Natapat Samutpong Date: Sun, 13 Mar 2022 13:12:44 +0700 Subject: [PATCH] box drawing :trollface: --- README.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index c067dd4..c19b14f 100644 --- a/README.md +++ b/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 +```js 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) ```