Class: Code::Parser::BitwiseOr

Inherits:
LeftOperation show all
Defined in:
lib/code/parser/bitwise_or.rb

Instance Method Summary collapse

Methods inherited from LeftOperation

#root, #whitespace, #whitespace?

Instance Method Details

#caretObject



14
15
16
# File 'lib/code/parser/bitwise_or.rb', line 14

def caret
  str("^")
end

#operatorObject



18
19
20
# File 'lib/code/parser/bitwise_or.rb', line 18

def operator
  pipe | caret
end

#pipeObject



10
11
12
# File 'lib/code/parser/bitwise_or.rb', line 10

def pipe
  str("|")
end

#statementObject



6
7
8
# File 'lib/code/parser/bitwise_or.rb', line 6

def statement
  BitwiseAnd
end