19 releases
0.7.1 | Nov 11, 2024 |
---|---|
0.6.1 | Oct 1, 2024 |
0.5.3 | Jul 23, 2024 |
0.5.2 | Nov 13, 2023 |
0.1.3 | Apr 16, 2021 |
#1402 in Parser implementations
1,325 downloads per month
Used in 9 crates
(6 directly)
48KB
1K
SLoC
lang-util
lang-util
is a crate that implements utilities to parse and represent syntax trees.
It also provides error formatting facilities for parsers using
lalrpop
and logos
.
This crate is tailored for use in the glsl-lang
crate,
but you may use its utilities for implementing your own language parsers:
- [error]: parsing error reporting module, with user-readable location information. Only
available with the
lalrpop
feature enabled. - [node]: AST node structure and display
- [position]: utilities for working with positions in strings
Author
Alixinne alixinne@pm.me
License
BSD-3-Clause
lib.rs
:
lang-util
is a crate that implements utilities to parse and represent syntax trees.
It also provides error formatting facilities for parsers using
lalrpop
and logos
.
This crate is tailored for use in the glsl-lang
crate,
but you may use its utilities for implementing your own language parsers:
- [error]: parsing error reporting module, with user-readable location information. Only
available with the
lalrpop
feature enabled. - [node]: AST node structure and display
- [position]: utilities for working with positions in strings
Dependencies
~0.8–1.3MB
~29K SLoC