Class: Code::Parser::Multiplication
Instance Method Summary
collapse
#root, #whitespace, #whitespace?
Instance Method Details
10
11
12
|
# File 'lib/code/parser/multiplication.rb', line 10
def asterisk
str("*")
end
|
22
23
24
|
# File 'lib/code/parser/multiplication.rb', line 22
def operator
asterisk | slash | percent
end
|
18
19
20
|
# File 'lib/code/parser/multiplication.rb', line 18
def percent
str("%")
end
|
14
15
16
|
# File 'lib/code/parser/multiplication.rb', line 14
def slash
str("/")
end
|
#statement ⇒ Object
6
7
8
|
# File 'lib/code/parser/multiplication.rb', line 6
def statement
Negation
end
|