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 554B

123456789101112131415161718192021222324252627282930
  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. FUNCTION = :function
  13. IDENTIFIER = :identifier
  14. IF = :if
  15. LBRACE = :lbrace
  16. LBRACKET = :lbracket
  17. LPAREN = :lparen
  18. LET = :let
  19. NULL = :null
  20. NUMBER = :number
  21. OPERATOR = :operator
  22. PRIVATE = :private
  23. PUBLIC = :public
  24. RBRACE = :rbrace
  25. RBRACKET = :rbracket
  26. ROCKET = :rocket
  27. RPAREN = :rparen
  28. SEMICOLON = :semicolon
  29. STRING = :string
  30. end