Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Irwin1985/ea4e02c7902545412f04a2c7c4bf95cf to your computer and use it in GitHub Desktop.

Select an option

Save Irwin1985/ea4e02c7902545412f04a2c7c4bf95cf to your computer and use it in GitHub Desktop.

Lo que un lenguaje necesita para ser apto en la creación de intérpretes

  • Enumerables:
    TokenKind = enum
      tkInteger,
      tkString,
      tkTrue,
      tkFalse,
      tkFunction,
      tkLet,
      tkReturn
      ...
  • HashTables
    var Keywords = {
      "fn": tkFunction,
      "let": tkLet,
      "true": tkTrue,
      ...
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment