Versatile parser for arithmetic expressions
APACHE-2.0 License
This repository contains a versatile parser for arithmetic expressions which allows customizing literal definitions, type annotations and several other aspects of parsing. The repository also contains several auxiliary crates (for example, a simple interpreter).
arithmetic-parser
is the core parsing library.arithmetic-eval
is a simple interpreter that could be used on parsed expressionsarithmetic-typing
is Hindley–Milner type inference for parsed expressions.arithmetic-parser-cli
is the CLI / REPL for the library.Early-stage; quite a bit of functionality is lacking, especially in interpreter and typing. As an example, method resolution is a mess (methods are just syntax sugar for functions).
All contributions are welcome! See the contributing guide to help you get involved.
All code in this repository is licensed under either of Apache License, Version 2.0 or MIT license at your option.