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

123456789101112
  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. OR = :or
  11. AND = :and
  12. end