Arithmetic evaluation: Difference between revisions

Content added Content deleted
Line 3,607: Line 3,607:
This is really just a simplification of the one in the heart of Phix,
This is really just a simplification of the one in the heart of Phix,
which of course by now is thousands of lines spread over several files,
which of course by now is thousands of lines spread over several files,
plus this as asked for has a proper AST, whereas Phix uses cross-linked flat IL.
plus this as asked for has an AST, whereas Phix uses cross-linked flat IL.
<lang Phix>sequence opstack = {} -- atom elements are literals,
<lang Phix>sequence opstack = {} -- atom elements are literals,
-- sequence elements are subexpressions
-- sequence elements are subexpressions