A toy dynamic programming language written in Ruby
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

token_kinds.rb 593B

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