Class: Pione::Lang::ConstituentRuleDeclaration

Inherits:
Declaration
  • Object
show all
Defined in:
lib/pione/lang/declaration.rb

Overview

ConstituentRuleDeclaration is a declaration for constituent rule sentences.

Instance Method Summary collapse

Methods inherited from Declaration

#eval!, inherited

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