A toy dynamic programming language written in Ruby
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

operators.rb 236B

1234567891011121314
  1. module AST::Operators
  2. ADD = :+
  3. SUBTRACT = :-
  4. MULTIPLY = :*
  5. DIVIDE = :/
  6. LESS_THAN = :<
  7. GREATER_THAN = :>
  8. LESS_THAN_OR_EQUAL = :<=
  9. GREATER_THAN_OR_EQUAL = :>=
  10. DOUBLE_EQUALS = :==
  11. OR = :or
  12. AND = :and
  13. NOT = :not
  14. end