33 releases (7 stable)
|1.3.1||May 14, 2022|
|0.21.1||Apr 1, 2022|
|0.20.0||Mar 31, 2022|
#91 in Parser tooling
158 downloads per month
A lexing and parsing toolkit for Rust
Santiago provides you:
- A library for defining any context-free grammar.
- A Lexical analysis module.
- And facilities for building interpreters or compilers of the language.
With Santiago you have everything that is needed to build your own programming language!
✔️ Fast 🦀
It's written in Rust, with zero dependencies and maximum portability in mind.
✔️ Easy to use
Defining a grammar is closely the same to its Backus–Naur form.
Creating a lexer is a matter of mapping some strings.
Error messages contain useful information.
Santiago can parse all context-free languages without exceptions.
High coverage, battle tested.
Santiago is inspired and aims to be an alternative to GNU Bison, Yacc and Flex, which are amazing tools, but not compatible with rust.
Just read the docs, we have plenty of examples over there, plus detailed explanation of each component.
Alternatively, you can checkout more examples in the tests folder.
We hope you find Santiago useful!
And don’t forget to give us a star ⭐