class Pione::PNML::CompilerError
CompilerError
represents compiler errors.
Public Class Methods
multiple_constraint_keywords(rule_name)
click to toggle source
Raise an exception for the case multiple constraint keywords found.
@param rule_name [String]
rule name
# 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)
click to toggle source
Raise an exception for the case of invalid constraint expression.
@param node [Node]
node that has invalid constraint expression
# 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