Class: Code::Parser::OrKeyword
Instance Method Summary
collapse
Methods inherited from Operation
#root, #whitespace, #whitespace?
Methods inherited from Language
<<, >>, absent, aka, #any, ignore, #inspect, maybe, parse, #parse, repeat, #str, then, #to_s, |
Instance Method Details
#and_keyword ⇒ Object
12
13
14
|
# File 'lib/code/parser/or_keyword.rb', line 12
def and_keyword
str("and")
end
|
16
17
18
|
# File 'lib/code/parser/or_keyword.rb', line 16
def operator
or_keyword | and_keyword
end
|
#or_keyword ⇒ Object
8
9
10
|
# File 'lib/code/parser/or_keyword.rb', line 8
def or_keyword
str("or")
end
|
#statement ⇒ Object
4
5
6
|
# File 'lib/code/parser/or_keyword.rb', line 4
def statement
::Code::Parser::NotKeyword
end
|