/stack_machine

Stack VM

Primary LanguageC#

Stack Machine VM

  • Basic Stack Operations
  • Math Operations
  • Basic Environment
  • Grow Environment
  • Bytecode OP CODES
  • Interpreter
  • Symbols
  • Functions
  • Bytecode Writer
  • Debug Information
  • Untyped Stack
  • Use stackalloc & Span
  • Memory for Store
  • References
  • Globals
  • Symbols
  • Chars
  • Arrays
  • Strings
  • Hash Table
  • First Class Environments
  • Locals
  • Function Parameters
  • Closures
  • Boxes
  • Arrays
  • Lisp Compiler
  • Compile to CIL (.NET)

TODO

  • Read source code and add comments
  • Implement Reference and Dereference
  • Implement Globals
  • Reimplement Closure Creating, Stack Frame activation
  • Create String Data Structure
  • Create Simple Array Data Structure
  • Create Hash Table Data Structure
  • Create Expresions Tree bycode writter

Reading Material: