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.



44
45
46
# File 'lib/calyx.rb', line 44

def initialize(atom)
  @atom = atom
end

Instance Method Details

#evaluate(registry) ⇒ Object



48
49
50
# File 'lib/calyx.rb', line 48

def evaluate(registry)
  @atom
end