Class: Pione::Lang::FlowContext

Inherits:
StructuralContext show all
Defined in:
lib/pione/lang/context.rb

Overview

FlowContext is a context for flow rule body.

Instance Method Summary collapse

Methods inherited from StructuralContext

#+, accept, acceptances, inherited, #initialize, #pos, #try_to_eval, #validate

Methods inherited from Context

#eval!

Constructor Details

This class inherits a constructor from Pione::Lang::StructuralContext

Instance Method Details

#eval(env) ⇒ Object

Evaluate the flow context. Return a new definition of constituent rule set.



206
207
208
209
210
# File 'lib/pione/lang/context.rb', line 206

def eval(env)
  ConstituentRuleSet.new.tap do |definition|
    env.temp(current_definition: definition) {|_env| super(_env)}
  end
end