Module: SimpleLogic

Defined in:
lib/simple_logic.rb,
lib/simple_logic/errors.rb,
lib/simple_logic/parser.rb,
lib/simple_logic/version.rb,
lib/simple_logic/syntax_nodes.rb,
lib/simple_logic/precedence_table.rb

Defined Under Namespace

Modules: PrecedenceTable Classes: Expression, InfixOperation, InfixOperationChain, NegationOperator, ParseError, Parser, UndefinedVariableError, Variable

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.eval(data, context) ⇒ Object



10
11
12
# File 'lib/simple_logic.rb', line 10

def self.eval(data, context)
  Parser.parse(data).eval(context)
end