33 releases (7 stable)

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

#266 in Programming languages

Download history 506/week @ 2023-12-13 300/week @ 2023-12-20 104/week @ 2023-12-27 567/week @ 2024-01-03 754/week @ 2024-01-10 548/week @ 2024-01-17 376/week @ 2024-01-24 150/week @ 2024-01-31 98/week @ 2024-02-07 358/week @ 2024-02-14 141/week @ 2024-02-21 56/week @ 2024-02-28 26/week @ 2024-03-06 426/week @ 2024-03-13 65/week @ 2024-03-20 14/week @ 2024-03-27

533 downloads per month
Used in 5 crates (3 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.8–4MB
~67K SLoC