lib/fugit/cron.rb in fugit-0.9.1 vs lib/fugit/cron.rb in fugit-0.9.2

- old
+ new

@@ -347,10 +347,12 @@ module Parser include Raabro WEEKDAYS = %w[ sun mon tue wed thu fri sat ] MONTHS = %w[ - jan feb mar apr may jun jul aug sep oct nov dec ] + # piece parsers bottom to top + def s(i); rex(:s, i, /[ \t]+/); end def star(i); str(:star, i, '*'); end def hyphen(i); str(nil, i, '-'); end def comma(i); str(nil, i, ','); end @@ -412,9 +414,11 @@ def ldom_(i); seq(nil, i, :list_dom, :s); end def lmon_(i); seq(nil, i, :list_mon, :s); end alias ldow list_dow def cron(i); seq(:cron, i, :lmin_, :lhou_, :ldom_, :lmon_, :ldow); end + + # rewriting the parsed tree def to_i(k, t) s = t.string.downcase