Class: Calyx::Grammar::Production::Terminal
- Inherits:
-
Object
- Object
- Calyx::Grammar::Production::Terminal
- Defined in:
- lib/calyx.rb
Instance Method Summary collapse
- #evaluate(registry) ⇒ Object
-
#initialize(atom) ⇒ Terminal
constructor
A new instance of Terminal.
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 |