Skip to content

Learning how a programming language works. Following the "Writing An Interpreter In Go" and "Writing A Compiler In Go" books by Thorsten Ball

Notifications You must be signed in to change notification settings

el2e10/interpreter-and-compiler-in-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interpreter In Go

Monkey programming language from Writing an interpreter in Go, Writing a compiler in Go

Ideas for customization

  • Port everything to C
  • Add history in REPL. ie. When the up arrow is clicked the previous statement should appear
  • Add character escaping in string. eg: r""
  • Add more building function for arrays
  • Add support for bitwise and shift operations
  • Add comments
  • Add support for -ve array indexing

Running the code

go run main.go

About

Learning how a programming language works. Following the "Writing An Interpreter In Go" and "Writing A Compiler In Go" books by Thorsten Ball

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages