From: Makoto Kuwata Date: 2004-04-03T17:13:31+09:00 Subject: Re: [ANN] Kwartz (2004-03-19) released Andreas Schwarz wrote: > >I get the following error with my template >(http://andreas-s.net/template.tar.gz): > >andreas@213-203-244-47:templates$ mkmethod -p template.plogic -M Template - >l erb template.html >/usr/local/lib/ruby/site_ruby/1.8/kwartz.rb:2654:in `exec_expr': undefined >method `token' for nil:NilClass (NoMethodError) This is a bug about handling negative number in Kwratz::Analyzer#exec_expr(). Try this patch: - - - - 8< - - - - - - - 8< - - - - - - - 8< - - - - - - - 8< - - - - --- kwartz.rb 2004/03/26 10:59:00 0.90 +++ kwartz.rb 2004/04/03 05:13:45 @@ -2676,7 +2676,7 @@ when '+', '-', '*', '/', '%' #, '^' exec_expr(expr_node.left, arg1, arg2) - exec_expr(expr_node.right, arg1, arg2) + exec_expr(expr_node.right, arg1, arg2) if expr_node.right when '!' exec_expr(expr_node.left) - - - - 8< - - - - - - - 8< - - - - - - - 8< - - - - - - - 8< - - - - Thanks for your reporting. -- regards, kwa