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

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