Class: Node

Inherits:
Object
  • Object
show all
Defined in:
lib/code_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(val, *args) ⇒ Node

Returns a new instance of Node.



2
3
4
5
# File 'lib/code_generator.rb', line 2

def initialize val, *args
  @value = val
  @children = args
end

Instance Method Details

#columnObject



11
12
13
# File 'lib/code_generator.rb', line 11

def column
  'base'
end

#genObject



7
8
9
# File 'lib/code_generator.rb', line 7

def gen
  raise "gen is not implemented: #{self}"
end