class Dentaku::AST::Modulo

Public Class Methods

arity() click to toggle source
# File lib/dentaku/ast/arithmetic.rb, line 181
def self.arity
  2
end
precedence() click to toggle source
# File lib/dentaku/ast/arithmetic.rb, line 185
def self.precedence
  20
end
resolve_class(next_token) click to toggle source
# File lib/dentaku/ast/arithmetic.rb, line 189
def self.resolve_class(next_token)
  next_token.nil? || next_token.operator? || next_token.close? ? Percentage : self
end

Public Instance Methods

operator() click to toggle source
# File lib/dentaku/ast/arithmetic.rb, line 193
def operator
  :%
end