Class: Code::Parser::OrKeyword

Inherits:
Operation show all
Defined in:
lib/code/parser/or_keyword.rb

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_keywordObject



12
13
14
# File 'lib/code/parser/or_keyword.rb', line 12

def and_keyword
  str("and")
end

#operatorObject



16
17
18
# File 'lib/code/parser/or_keyword.rb', line 16

def operator
  or_keyword | and_keyword
end

#or_keywordObject



8
9
10
# File 'lib/code/parser/or_keyword.rb', line 8

def or_keyword
  str("or")
end

#statementObject



4
5
6
# File 'lib/code/parser/or_keyword.rb', line 4

def statement
  ::Code::Parser::NotKeyword
end