Open Source Calculator Code Released

October 3, 2012

We have decided to open source our calculator project to the world. Here are some of the features of the code:

  • Implements a lexer, parser, and Dijkstra’s shunting yard algorithm to convert an expression into postfix form.
  • Implements a simple stack machine for parsing these expressions. When using float and double, the speed is quite fast.
  • Implements a basic UI, as seen below (keep in mind that many of the features are not implemented):

calculator

If you’re interested in learning more about lexing and parsing, or even if you’re just curious, you can access the GitHub project here. The code is licensed under the Apache 2.0 license.

Share:
Latest articles
Easy Voice Recorder Pro is now part of Google Play Pass

Easy Voice Recorder Pro is now available with Google Play Pass! Unlock all of the pro features with your subscription. Check it out!

Read more
Easy Voice Recorder is Editors’ Choice over at Google Play

I’m very happy to announce that Easy Voice Recorder has been featured with the prestigious Editors’ Choice badge on Google Play!

Read more
Easy Voice Recorder for iOS, and Recent Reviews

Easy Voice Recorder is now available for iOS devices! It can be downloaded from the App Store. If you have any questions or comments about the app, please don’t hesitate to let us know using the “Feedback” option from the app’s settings.

Read more
The Great Thanksgiving Charity Giveaway

Welcome to The Great Thanksgiving Charity Giveaway! We’re happy to partner up with Budgeting in the Fun Stuff and several other bloggers to run a November giveaway, with $125 going to one big winner, and at least another $125 going to charity!

Read more
Digipom 2023
Do not sell my personal information Privacy policy Terms of use