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

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

Instance Method Summary collapse

Constructor Details

#initialize(atom) ⇒ Terminal

Returns a new instance of Terminal.



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

def initialize(atom)
  @atom = atom
end

Instance Method Details

#evaluateObject



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

def evaluate
  @atom
end