28 lines
745 B
Plaintext
28 lines
745 B
Plaintext
lr
|
|
|
|
Turn something in a human readable computer language like
|
|
print('hello');
|
|
|
|
into an intermediate form that can be used programmatically
|
|
___________________________________________________________
|
|
|
|
|
|
Lexer-----------------------
|
|
1. Refactor using buffering
|
|
|
|
|
|
Parser----------------------
|
|
|
|
|
|
Code Generator--------------
|
|
Code generator state
|
|
File output buffer
|
|
Set a block size and only output when full
|
|
Variable data
|
|
Types & type annotation (i32, i8, string, references,...)
|
|
x86_64: reference type needs 64-bit size to store addresses
|
|
"Run" build architecture
|
|
Virtual machine for intermediate representation/language
|
|
"Intermediate build representation/architecture/language"
|
|
Smart pointers (references/borrow checking)?
|