Class: Pione::Lang::ConstituentRuleDeclaration
- Inherits:
-
Declaration
- Object
- StructX
- Declaration
- Pione::Lang::ConstituentRuleDeclaration
- Defined in:
- lib/pione/lang/declaration.rb
Overview
ConstituentRuleDeclaration is a declaration for constituent rule sentences.
Instance Method Summary collapse
-
#eval(env) ⇒ Object
Append the constituent rule to the current definition.
Methods inherited from Declaration
Methods included from Util::Positionable
#line_and_column, #pos, #set_source_position
Instance Method Details
#eval(env) ⇒ Object
Append the constituent rule to the current definition.
201 202 203 |
# File 'lib/pione/lang/declaration.rb', line 201 def eval(env) env.current_definition.rules += expr.eval!(env) end |