Module: Gisele::Language::AST::BoolExpr

Includes:
Node
Defined in:
lib/gisele/language/ast/bool_expr.rb

Instance Method Summary collapse

Methods included from Node

#===, #citrus_match

Instance Method Details

#labelObject



7
8
9
# File 'lib/gisele/language/ast/bool_expr.rb', line 7

def label
  (citrus_match && citrus_match.to_s) || last.label
end

#negateObject



11
12
13
14
15
16
17
# File 'lib/gisele/language/ast/bool_expr.rb', line 11

def negate
  if last.first == :bool_not
    Language.sexpr [:bool_expr, last.last]
  else
    Language.sexpr [ :bool_expr, [:bool_not, last] ]
  end
end