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

Download history 429/week @ 2024-07-31 441/week @ 2024-08-07 673/week @ 2024-08-14 226/week @ 2024-08-21 126/week @ 2024-08-28 87/week @ 2024-09-04 151/week @ 2024-09-11 243/week @ 2024-09-18 353/week @ 2024-09-25 305/week @ 2024-10-02 191/week @ 2024-10-09 295/week @ 2024-10-16 190/week @ 2024-10-23 183/week @ 2024-10-30 550/week @ 2024-11-06 322/week @ 2024-11-13

1,325 downloads per month
Used in 9 crates (6 directly)

BSD-3-Clause

48KB
1K SLoC

lang-util

Crates.io docs.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

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