lib/semantic_model/defining_rules.rb
# define default/base rules in system available in all instances of SemanticModel
define default/base rules in system available in all instances of SemanticModel
define default / base rules in system available in all instances of SemanticModel
def build_rule(expr, multiline_expr = nil, &block)
      data = { :default => true }
      if multiline_expr.nil?
        Parser::Rule.new(expr, data, &block)
      else
        Parser::MultilineRule.new(expr, multiline_expr, data, &block)
      end
    end
def build_rule ( expr , multiline_expr = nil , & block ) data = { :default => true } if multiline_expr . nil? Parser :: Rule . new ( expr , data , & block ) else Parser :: MultilineRule . new ( expr , multiline_expr , data , & block ) end end
define default/base rules in system available in all instances of SemanticModel
define default / base rules in system available in all instances of SemanticModel
expr
<not_specific>
multiline_expr
<not_specific>
block
<not_specific>