You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vinícius Garcia edited this page May 1, 2017
·
20 revisions
Expression Parser •
This project provides a powerful expression parser capable of serving as a core engine for building a programming language. For those interested only in a simple expression parser the calculator class does the job and is quite easy to use.
The main parser follows Dijkstra's Shunting-yard algorithm,
and modifies Jesse Brown's original code.
This project was developed by Brandon Amos and Vinícius Garcia.
An Engine for Programming Languages
This project provides an Engine for programming languages, meaning it is equipped to support all the most complex features a programming language may need, such as:
Global and local scope management.
Generic built-in data containers (Lists, Maps, Tuples).
A built-in garbage collector with reference counting.
A fully customizable set of operations, functions, types and reserved words.
Examples - how to build your own programming language
Reference section - all the details (under construction)
Mathematical parser:
If all you need is a mathematical parser, the example bellow shows how it works. The built-in operations are sane and will probably satisfy most things you may need.