#5319 HIGH Update.: Calculator in a language with ", " for decimal point cannot parse expression.
Zarro Boogs per Child
bugtracker at laptop.org
Mon Dec 10 16:38:04 EST 2007
#5319: Calculator in a language with "," for decimal point cannot parse
expression.
----------------------------------+-----------------------------------------
Reporter: ohshima | Owner: rwh
Type: defect | Status: new
Priority: high | Milestone: Update.1
Component: calculator-activity | Version:
Resolution: | Keywords:
Verified: 0 |
----------------------------------+-----------------------------------------
Comment(by ohshima):
For the "pow(2,3,0)" case, a) we could make it so that it always requires
a space like "pow(2, 3,0)", or b) because we know the arity of each
function, we can employ a "greedy" algorithm so that we can make "," for
the argument separator is stronger than "," for decimal point.
A simple parser generator is called for... Do we have a PEG
implementation for Python?
--
Ticket URL: <http://dev.laptop.org/ticket/5319#comment:3>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list