20 releases

0.7.2 Nov 22, 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

#1436 in Parser implementations

Download history 165/week @ 2024-08-24 105/week @ 2024-08-31 73/week @ 2024-09-07 238/week @ 2024-09-14 235/week @ 2024-09-21 405/week @ 2024-09-28 211/week @ 2024-10-05 238/week @ 2024-10-12 246/week @ 2024-10-19 208/week @ 2024-10-26 288/week @ 2024-11-02 490/week @ 2024-11-09 393/week @ 2024-11-16 242/week @ 2024-11-23 174/week @ 2024-11-30 264/week @ 2024-12-07

1,095 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