Skip to content

Instantly share code, notes, and snippets.

@sshao
Last active August 29, 2015 14:14
Show Gist options
  • Save sshao/711b180185f24d671a62 to your computer and use it in GitHub Desktop.
Save sshao/711b180185f24d671a62 to your computer and use it in GitHub Desktop.
writing a language on the rbx vm
  • Identifying and explaining general concepts
    • scopes, bindings, environments
    • the background context behind 'running' a file/script/method
  • Compiler stages:
    • how they're organized and how they're chained
    • how to define the first/last stages. Does the first stage have to be the parser? (I tried to implement a 'lexer' stage before then, and couldn't figure out how)
  • Initializing the environment (things like initializing heap size/space) before compilation or execution
  • A high-level overview of how code -> s-expressions -> AST/AST nodes -> bytecode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment