13 releases

0.5.2 Nov 13, 2023
0.5.1 Apr 27, 2023
0.4.1 Sep 5, 2022
0.3.1 Jul 3, 2022
0.1.3 Apr 16, 2021

#2280 in Parser implementations

Download history 68/week @ 2024-01-05 72/week @ 2024-01-12 141/week @ 2024-01-19 117/week @ 2024-01-26 89/week @ 2024-02-02 144/week @ 2024-02-09 135/week @ 2024-02-16 252/week @ 2024-02-23 215/week @ 2024-03-01 178/week @ 2024-03-08 164/week @ 2024-03-15 166/week @ 2024-03-22 155/week @ 2024-03-29 104/week @ 2024-04-05 134/week @ 2024-04-12 205/week @ 2024-04-19

646 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

Vincent Tavernier vince.tavernier@gmail.com

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

~2MB
~44K SLoC