Cleaned up code, made another file for the tokenization(lexer) almost at parsing tree (
[ SOURCE CODE ]
│
- ▼ LEXICAL ANALYSIS (Tokenizer) ◄─── finished here
[ TOKEN STREAM ]
│ - ▼ SYNTAX ANALYSIS (Parser)
[ ABSTRACT SYNTAX TREE (AST) ]
│ - ▼ SEMANTIC ANALYSIS (Type Checker)
[ DECORATED AST ]
│ - ▼ INTERMEDIATE CODE GENERATION (IR)
[ IR CODE ] (e.g., Three-Address Code, Bytecode)
│ - ▼ CODE OPTIMIZATION
[ OPTIMIZED IR ]
│ - ▼ TARGET CODE GENERATION
[ MACHINE CODE / ASSEMBLY ] (Final Executable)
“there are two types of programmers - those who have written a compiler and those who haven’t”
-Terry Davis
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.