jrkarnes / infix-evaluator Goto Github PK
View Code? Open in Web Editor NEWCS 303 Project 2A
CS 303 Project 2A
In the instance where there are multiple prefix operators, the stack evaluation rules do not currently allow for both operators to evaluate the proper value.
Consider the expression 8+++++-9
The order of evaluation should be : 8, +, ++, ++, -9. In this case, the -9 should be the last value on the value stack and then operated on twice by the prefix increment operator. The current writing of the program will put out:
PUSH(8), PUSH(+), PUSH(++), EVALUATE(++, 8), PUSH(9), PUSH(++), PUSH(-9), EVALUATE(++, -9), PUSH(-8), EVALUATE(+, -8), PULL(9), PUSH(1), RETURN (1)
While the result is the same, this might not be the case in instances where there is multiplication being done.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.