Menu ▾ ▴

#6 yacc chokes on formulas containing -()

open
nobody
None
1
2005-04-25
2005-01-19
Anonymous
No

Problem:
ws.write([row, col], "=-
(H8+K8+N8+Q8+T8+W8+Z8+AC8+AF8)")

It seems that yacc cannot parse this formula cause it
returns tokens = None!

Solution:
It seems that the parser chokes on the minus sign of the
formula. The solution was:

ws.write([row, col],
"=(H8+K8+N8+Q8+T8+W8+Z8+AC8+AF8) * -1")

Anyhow, the parser should handle the minus sign in front
of parenthesis.

Cool library!

Discussion

  • Evgeny Filatov

    Evgeny Filatov - 2005-04-25

    Logged In: YES
    user_id=952405

    Unary minus is not supported yet. It already presents in
    todo.txt

    BR EvgenyBF

     
  • Evgeny Filatov

    Evgeny Filatov - 2005-04-25
    • priority: 5 --> 1
     

Log in to post a comment.