Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davidelettieri/polynomials-fparsec

Parsing polynomial expressions with F# and FParsec
https://github.com/davidelettieri/polynomials-fparsec

fparsec fsharp polynomials

Last synced: 19 days ago
JSON representation

Parsing polynomial expressions with F# and FParsec

Awesome Lists containing this project

README

        

# polynomials-fparsec

A simple parser and evaluator for polynomials expressions. For example it can parse expressions like:
* x+y^2
* 2*(x+1)

The solution uses [FParsec](https://www.quanttec.com/fparsec/) to implement a recursive descent parser.

As examples of other approaches to the same problem, using C#:
* [Parsing polynomials with a Pratt Parser](https://github.com/davidelettieri/polynomials-pratt-algorithm)
* [Parsing polynomials with a Antlr4](https://github.com/davidelettieri/Antlr4.Polynomials)