Class: Calyx::Grammar::Production::Terminal
- Inherits:
-
Object
- Object
- Calyx::Grammar::Production::Terminal
- Defined in:
- lib/calyx.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.
50 51 52 |
# File 'lib/calyx.rb', line 50 def initialize(atom) @atom = atom end |
Instance Method Details
#evaluate ⇒ Object
54 55 56 |
# File 'lib/calyx.rb', line 54 def evaluate @atom end |