Exception: Pione::PNML::CompilerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pione/pnml/compiler.rb

Overview

CompilerError represents compiler errors.

Class Method Summary collapse

Class Method Details

.multiple_constraint_keywords(rule_name) ⇒ Object

Raise an exception for the case multiple constraint keywords found.

Parameters:

  • rule_name (String)

    rule name



435
436
437
# File 'lib/pione/pnml/compiler.rb', line 435

def self.multiple_constraint_keywords(rule_name)
  new('Cannot connect multiple constraint nodes with rule "%s".' % rule_name)
end

.should_be_constraint_expr(node) ⇒ Object

Raise an exception for the case of invalid constraint expression.

Parameters:

  • node (Node)

    node that has invalid constraint expression



427
428
429
# File 'lib/pione/pnml/compiler.rb', line 427

def self.should_be_constraint_expr(node)
  new('The node "%s" should be a PIONE expression because of constraint keyword.' % node.name)
end