Crates.io | santiago |
lib.rs | santiago |
version | 1.3.1 |
source | src |
created_at | 2022-03-19 00:34:12.694841 |
updated_at | 2022-05-14 21:49:02.095538 |
description | A lexing and parsing toolkit for Rust |
homepage | |
repository | https://github.com/kamadorueda/santiago |
max_upload_size | |
id | 552970 |
size | 2,247,261 |
A lexing and parsing toolkit for Rust
Santiago provides you:
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.
✔️ Powerful
Santiago can parse all context-free languages without exceptions.
✔️ Reliable
High coverage, battle tested.
✔️ Compatible
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 ⭐