SkillAgentSearch skills...

Santiago

Santiago is a lexing and parsing toolkit for Rust

Install / Use

/learn @kamadorueda/Santiago

README

<!-- SPDX-FileCopyrightText: 2022 Kevin Amado <kamadorueda@gmail.com> SPDX-License-Identifier: GPL-3.0-only --> <h1 align="center">🐆 Santiago</h2> <p align="center">A lexing and parsing toolkit for Rust</p> <p align="center"> <a href="https://buildkite.com/kamadorueda/santiago"> <img alt="CI/CD" src="https://badge.buildkite.com/4b931515838b1cf833c90ef188b455f4fbb336f2b416fec20c.svg?branch=main" > </img> </a> <a href="https://docs.rs/santiago"> <img alt="Documentation" src="https://img.shields.io/docsrs/santiago?color=brightgreen" > </img> </a> <a href="https://crates.io/crates/santiago"> <img alt="Version" src="https://img.shields.io/crates/v/santiago?color=brightgreen" > </img> </a> <a href="https://spdx.org/licenses/GPL-3.0-only.html"> <img alt="License" src="https://img.shields.io/crates/l/santiago?color=brightgreen" > </img> </a> <!-- <a href="https://crates.io/crates/santiago"> <img alt="Downloads" src="https://img.shields.io/crates/d/santiago" > </img> </a> --> </p>

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.

    <!-- It performs: - Linear time and space lexing. - Linear time and space parsing of [deterministic grammars](https://en.wikipedia.org/wiki/Deterministic_context-free_grammar). - Linear space and quadratic time of [unambiguous grammars](https://en.wikipedia.org/wiki/Unambiguous_grammar). - Linear space and cubic time of highly [ambiguous grammars](https://en.wikipedia.org/wiki/Ambiguous_grammar). -->
  • ✔️ 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 ⭐

View on GitHub
GitHub Stars111
CategoryDevelopment
Updated1d ago
Forks10

Languages

Rust

Security Score

85/100

Audited on Apr 9, 2026

No findings