Skip to content

gin/interpreter-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Interpreter and Compiler

I looked at EVM, OVM, CosmWasm and Gnolang, and wanted to know how those work. I figured it would be a good idea to go through some books on interpreters and compilers. I chose to write an interpreter and a compiler in Go because I am more familiar with Go than C++. Maybe I'll try out C++ in the future.

Interpreter

Tree-walking interpreter.

  1. Parse source code
    • lexer
    • parser
  2. Build an abstract syntax tree (AST)
    • AST
    • internal object system
  3. Evaluate the AST
    • evaluator

Compiler

TBA

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages