Skip to content

Latest commit

 

History

History
65 lines (49 loc) · 2.1 KB

1.md

File metadata and controls

65 lines (49 loc) · 2.1 KB

summary

front end

compile

      tokenizer / lexer                     parser                                     compile                                           optimize
file -------------------> token stream --------------> abstract syntax tree (AST) ----------------> intermediate representation (IR) ----------------> intermediate representation (IR) 

backend

compile

                                |-------------> Platform1
intermedia representation (IR) -|-------------> Platform2
                                |-------------> Platform3

run / interprete

intermedia representation (IR) <----> virtual machine (VM)

grammar

parser

intermedia representation

  • llvm

virtual machine

  • stack
  • process / thread / coroutine
  • object model
  • extension