User talk:Marinus/Gibberish interpreter

Bugfix for binary operators in command set #3
There is a bug in the implementation of set #3 which leads to an error that global 'binop' is not defined. The original lines in the code are: def cBinAnd(self): self.binstackf(binop(and_), NUMT, NUMT) def cBinOr(self): self.binstackf(binop(or_), NUMT, NUMT)

This should be changed to  def cBinAnd(self): self.binstackf(self.binop(and_), NUMT, NUMT) def cBinOr(self): self.binstackf(self.binop(or_), NUMT, NUMT)

Otherwise, you cannot use the logical AND and OR operators of command set #3...


 * Fixed that. Huh, someone is actually using this. --Marinus (talk) 08:43, 6 July 2013 (UTC)