A toy dynamic programming language written in Ruby
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

token_kinds.rb 578B

1234567891011121314151617181920212223242526272829303132
  1. module TokenKinds
  2. ATOM = :atom
  3. BOOLEAN = :boolean
  4. CLASS = :class
  5. CLASS_NAME = :class_name
  6. COMMA = :comma
  7. DOT = :dot
  8. ELSEIF = :elseif
  9. ELSE = :else
  10. EOF = :eof
  11. EQUALS = :equals
  12. FOR = :for
  13. FUNCTION = :function
  14. IDENTIFIER = :identifier
  15. IF = :if
  16. IN = :in
  17. LBRACE = :lbrace
  18. LBRACKET = :lbracket
  19. LPAREN = :lparen
  20. LET = :let
  21. NULL = :null
  22. NUMBER = :number
  23. OPERATOR = :operator
  24. PRIVATE = :private
  25. PUBLIC = :public
  26. RBRACE = :rbrace
  27. RBRACKET = :rbracket
  28. ROCKET = :rocket
  29. RPAREN = :rparen
  30. SEMICOLON = :semicolon
  31. STRING = :string
  32. end