Class: Pegarus::Concatenation

Inherits:
BinaryOp show all
Defined in:
lib/pegarus/ast/concatenation.rb,
lib/pegarus/rubinius/compiler.rb

Instance Attribute Summary

Attributes inherited from BinaryOp

#first, #second

Instance Method Summary collapse

Methods inherited from BinaryOp

#initialize

Methods inherited from Pattern

#*, #+, #+@, #-, #-@, #/, engine, #graph, #match, select_engine

Constructor Details

This class inherits a constructor from Pegarus::BinaryOp

Instance Method Details

#bytecode(g) ⇒ Object



173
174
175
176
# File 'lib/pegarus/rubinius/compiler.rb', line 173

def bytecode(g)
  @first.bytecode(g)
  @second.bytecode(g)
end

#visit(visitor) ⇒ Object



3
4
5
# File 'lib/pegarus/ast/concatenation.rb', line 3

def visit(visitor)
  visitor.concatenation self
end