lib/dentaku/tokenizer.rb in dentaku-0.2.8 vs lib/dentaku/tokenizer.rb in dentaku-0.2.9

- old
+ new

@@ -34,12 +34,13 @@ when '<' then :lt when '>' then :gt when '=' then :eq end end), - TokenScanner.new(:combinator, '(and|or)\b', lambda {|raw| raw.strip.downcase.to_sym }), - TokenScanner.new(:function, '(if|round|not)\b', lambda {|raw| raw.strip.downcase.to_sym }), - TokenScanner.new(:identifier, '\w+\b', lambda {|raw| raw.strip.downcase.to_sym }) + TokenScanner.new(:combinator, '(and|or)\b', lambda {|raw| raw.strip.downcase.to_sym }), + TokenScanner.new(:function, '(if|round(up|down)?|not)\b', + lambda {|raw| raw.strip.downcase.to_sym }), + TokenScanner.new(:identifier, '\w+\b', lambda {|raw| raw.strip.downcase.to_sym }) ] LPAREN = TokenMatcher.new(:grouping, :open) RPAREN = TokenMatcher.new(:grouping, :close)