Class: Code::Parser::Greater
Instance Method Summary
collapse
#root, #whitespace, #whitespace?
Instance Method Details
22
23
24
|
# File 'lib/code/parser/greater.rb', line 22
def equal
str("=")
end
|
14
15
16
|
# File 'lib/code/parser/greater.rb', line 14
def greater
str(">")
end
|
18
19
20
|
# File 'lib/code/parser/greater.rb', line 18
def lesser
str("<")
end
|
26
27
28
29
|
# File 'lib/code/parser/greater.rb', line 26
def operator
(greater << equal) | (lesser << equal << greater.absent) |
(greater << equal.absent) | lesser
end
|
#right_statement ⇒ Object
10
11
12
|
# File 'lib/code/parser/greater.rb', line 10
def right_statement
Greater
end
|
#statement ⇒ Object
6
7
8
|
# File 'lib/code/parser/greater.rb', line 6
def statement
BitwiseOr
end
|