Class: Code::Parser::BitwiseAnd

Inherits:
Operation show all
Defined in:
lib/code/parser/bitwise_and.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

#ampersandObject



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

def ampersand
  str("&")
end

#operatorObject



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

def operator
  ampersand
end

#statementObject



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

def statement
  ::Code::Parser::Shift
end