Parser power operator
I tried what I thought was the obvious thing to add in the **
power operator in parser.py
:
_operators = {
"+": operator.add,
"-": operator.sub,
"**": operator.pow,
"*": operator.mul,
"/": operator.truediv,
}
then expr POWER expr
in def expr
decorator., but parsing l L0 P= 2**2
always results in:
KatParserError: (use finesse.tb() to see the full traceback)
line 2:11: Got unexpected token * of type TIMES
l L0 P= 2**2
^
So I'm guessing operators can only be single characters? Or it's defaulting to times first before checking for power?