lib/expressive.rb in expressive-0.0.8 vs lib/expressive.rb in expressive-0.0.9

- old
+ new

@@ -1,10 +1,12 @@ require 'polyglot' require 'treetop' require 'awesome_print' require 'rest_client' require File.join(File.dirname(__FILE__), 'scope') +require File.join(File.dirname(__FILE__), 'extended_value') +require File.join(File.dirname(__FILE__), 'webhook') Treetop.load File.join(File.dirname(__FILE__), 'expressive_grammar.treetop') module Expressive def self.run(source_code, scope = TopLevel.new ) @@ -16,10 +18,10 @@ @parser ||= ::ExpressiveParser.new @parser.parse(expressions) end def self.all_symbols - %w(+ - * / = set sum post >= > < <= and or if date get put) + %w(+ - * / = set sum post >= > < <= and or if date get put lookup) end module Boolean def eval(scope) 'true' == text_value