Class: Calyx::Grammar::Production::Terminal
- Inherits:
-
Object
- Object
- Calyx::Grammar::Production::Terminal
- Defined in:
- lib/calyx/grammar/production/terminal.rb
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(atom) ⇒ Terminal
constructor
A new instance of Terminal.
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
#evaluate ⇒ Object
9 10 11 |
# File 'lib/calyx/grammar/production/terminal.rb', line 9 def evaluate @atom end |