Anonymous user
Arithmetic evaluation: Difference between revisions
m
→{{header|Python}}: layout
m (→{{header|Python}}: layout) |
|||
Line 1,345:
=={{header|Python}}==
There are python modules, such as Ply, which facilitate the implementation of parsers. This example, however, uses only standard Python with the parser having two stacks, one for operators, one for operands.
<lang python>import operator
|