Silikego—Math Parser written in C++
Silikego is a library for mathematical expression parsing and evaluation that I developed as a teaching aid. The goal is to show a fully working programming project without being overly contrived like a “hello world” project. Silikego has a companion project, called Siliko, which implements the same language, and is written in C.
What does it do?
Silikego exposes functionality to build parsers. It includes modules to handle the different parts of a parser:
- Lexical analyzer to separate tokens
- Syntax tree with various leaf nodes for values and errors, and a branch node for functions and operators
- Function handler that the branch node in the syntax tree use to evaluate operations functions
- Working infix parser as an example
Project Details
License: GNU Lesser General Public License version 3.0 or later
Repository: https://github.com/vdamewood/silikego
Copyright 2020 Vincent Damewood