From: Jeff E. <jem...@fr...> - 2008-02-15 16:04:08
|
Maybe setattr(self,'no-loop',TRUE) cl...@br... wrote: > Dear colleagues, > > porting a Drools semantic (rules definition language) into a Jython code. > The code throws a syntax error at the following line: > > TRUE = 1 > FALSE = 0 > .. > self.salience = 30 > self.no-loop = TRUE > > Error: Syntax error can´t assign to operator. > > Looks like the Jython acts like a Python interpreter, rejecting the right > side of the assignment statement, thinking "self.no-loop" is an > expression. > Indeed inside Java DRL, the "no-rule" is an attribute, like this <rule > name="rule1" salience="30" no-rule="true"> > > Any idea how to fix the syntax error? > > Regards, > Claude > > Claude Falbriard > Developer > AMS Hortolândia / SP - Brazil > phone: +55 13 8126 7787 > cell: +55 13 8117 3316 > e-mail: cl...@br... > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |