33 releases (7 stable)

1.3.1 May 14, 2022
0.21.1 Apr 1, 2022
0.20.0 Mar 31, 2022

#17 in #context-free-grammar

Download history 27/week @ 2024-06-16 282/week @ 2024-06-23 367/week @ 2024-06-30 217/week @ 2024-07-07 107/week @ 2024-07-14 216/week @ 2024-07-21 252/week @ 2024-07-28 136/week @ 2024-08-04 23/week @ 2024-08-11 69/week @ 2024-08-18 148/week @ 2024-08-25 56/week @ 2024-09-01 91/week @ 2024-09-08 52/week @ 2024-09-15 651/week @ 2024-09-22 393/week @ 2024-09-29

1,189 downloads per month
Used in 6 crates (4 directly)

GPL-3.0-only

195KB
1.5K SLoC

🐆 Santiago

A lexing and parsing toolkit for Rust

CI/CD Documentation Version License

Santiago provides you:

With Santiago you have everything that is needed to build your own programming language!

Features

  • ✔️ 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.

Getting started

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 ⭐

Dependencies

~2.7–4MB
~66K SLoC