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.

operators.rb 223B

12345678910111213
  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. end