Class: Calyx::Production::Terminal

Inherits:
Object
  • Object
show all
Defined in:
lib/calyx/production/terminal.rb

Instance Method Summary collapse

Constructor Details

#initialize(atom) ⇒ Terminal

Returns a new instance of Terminal.



4
5
6
# File 'lib/calyx/production/terminal.rb', line 4

def initialize(atom)
  @atom = atom
end

Instance Method Details

#evaluateObject



8
9
10
# File 'lib/calyx/production/terminal.rb', line 8

def evaluate
  [:atom, @atom]
end