Skip to content

notjedi/rpp-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpp-vm

This is a fun project to learn and build a interpreter and compiler from scratch for hacktoberfest.

This code was written when rajiniPP was at 4d866c0.

It has a tree-walk interpreter and also a bytecode compiler and interpreter. I was just toying around so it's kinda slow.

References for lexer

  1. https://github.com/sssooonnnggg/rslua
  2. https://github.com/jakemarsden/JakeScript
  3. https://github.com/orosmatthew/hydrogen-cpp
  4. https://github.com/julian-hartl/fusion-lang
  5. https://github.com/rust-lang/rust/blob/master/compiler/rustc_lexer/src/lib.rs
  6. https://craftinginterpreters.com
  7. https://thume.ca/2019/04/18/writing-a-compiler-in-rust
  8. https://github.com/pretzelhammer/rust-blog/blob/master/posts/common-rust-lifetime-misconceptions.md
  9. https://asmtutor.com
  10. https://github.com/hackclub/some-assembly-required
  11. https://github.com/pretzelhammer/rust-blog/blob/master/posts/too-many-brainfuck-compilers.md
  12. https://web.archive.org/web/20150328215929/https://www.imada.sdu.dk/Courses/DM18/Litteratur/IntelnATT.htm
  13. https://patshaughnessy.net/2016/11/26/learning-to-read-x86-assembly-language
  14. https://patshaughnessy.net/2017/1/20/pointers-in-c-and-x86-assembly-language
  15. https://patshaughnessy.net/2022/2/19/llvm-ir-the-esperanto-of-computer-languages
  16. https://www.cs.virginia.edu/~evans/cs216/guides/x86.html
  17. https://www.cs.cornell.edu/courses/cs4120/2022sp/notes/regalloc
  18. http://dbp-consulting.com/tutorials/debugging/linuxProgramStartup.html
  19. https://oneraynyday.github.io/dev/2020/05/03/Analyzing-The-Simplest-C++-Program