Class: Keisan::Parsing::Operator
Instance Method Summary
collapse
Instance Method Details
#arity ⇒ Object
4
5
6
|
# File 'lib/keisan/parsing/operator.rb', line 4
def arity
node_class.arity
end
|
#associativity ⇒ Object
12
13
14
|
# File 'lib/keisan/parsing/operator.rb', line 12
def associativity
node_class.associativity
end
|
#node_class ⇒ Object
16
17
18
|
# File 'lib/keisan/parsing/operator.rb', line 16
def node_class
raise Exceptions::NotImplementedError.new
end
|
#priority ⇒ Object
8
9
10
|
# File 'lib/keisan/parsing/operator.rb', line 8
def priority
node_class.priority
end
|