33 releases (7 stable)

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

#298 in Programming languages

Download history 56/week @ 2024-02-26 24/week @ 2024-03-04 374/week @ 2024-03-11 120/week @ 2024-03-18 13/week @ 2024-03-25 35/week @ 2024-04-01 7/week @ 2024-04-08 39/week @ 2024-04-15 113/week @ 2024-04-22 7/week @ 2024-04-29 120/week @ 2024-05-06 26/week @ 2024-05-13 20/week @ 2024-05-20 141/week @ 2024-05-27 37/week @ 2024-06-03 23/week @ 2024-06-10

224 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.9–4MB
~67K SLoC