akiss-xyz / tomorrow Goto Github PK
View Code? Open in Web Editor NEWA small graphical calculator project.
License: GNU General Public License v3.0
A small graphical calculator project.
License: GNU General Public License v3.0
Compilation takes way too long especially if multiple files dealing with the CImg library have to be recompiled.
Seriously disappointing.
The current system for parsing functions seems slightly hack-y. Instead of dealing with strings all the way through, we should parse each item in our input string into a 'symbol', so that our string turns into an array of symbols.
A symbol would be a generic type with minimal data associated with it. Something like:
Private source character
A getData method - just so we can get the raw representation of what this symbol is, e.g. '*' or "sin"
A handle method - if the priority level (which controls the order of operations) is high enough, then resolve this operation. For example, if the symbol was a multiplication, the handle function would check if we're at the point to do multiplication, then carry it out. Not all symbols need a handle method e.g. constant numbers don't need to be 'handled', they are acted on by other symbols.
These symbols would then be organized in a list.
In this way, binary operators (+, -, *, /) could easily be implemented, as they'd basically have to do:
newSymbol = symbols[n-1] + symbols[n+1]
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.