Crate chompy

Source
Expand description

chompy provides a series of utilities used to create parsers. This crate is primarily developed to assist with the specific needs of my own projects but aspires to be robust enough to serve any user interested in creating a parser quickly.

Modules§

diagnostics
Handles the creation and management of user-driven errors with chompy.
lex
Tools for creating tokens and lexers.
parse
Tools for creating parsers.
utils
Common utilities shared across the different elements of chompy.

Macros§

define_bug
Provides the boilerplate for implementing super::Diag on a struct with super::Severity::Bug.
define_diag
Core macro: now accepts optional generics and applies to Diag, Located, Debug
define_error
Provides the boilerplate for implementing super::Diag on a struct with super::Severity::Error.
define_warning
Provides the boilerplate for implementing super::Diag on a struct with super::Severity::Warning.