Class: Calyx::Grammar::Production::Terminal

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

Instance Method Summary collapse

Constructor Details

#initialize(atom) ⇒ Terminal

Returns a new instance of Terminal.



50
51
52
# File 'lib/calyx.rb', line 50

def initialize(atom)
  @atom = atom
end

Instance Method Details

#evaluateObject



54
55
56
# File 'lib/calyx.rb', line 54

def evaluate
  @atom
end