111 releases (28 breaking)

new 0.29.0 Oct 30, 2024
0.27.3 Sep 22, 2024
0.25.4 Jul 26, 2024
0.20.2 Mar 27, 2024
0.3.2 Mar 11, 2023

#549 in Programming languages

Download history 402/week @ 2024-07-10 418/week @ 2024-07-17 592/week @ 2024-07-24 705/week @ 2024-07-31 570/week @ 2024-08-07 312/week @ 2024-08-14 343/week @ 2024-08-21 195/week @ 2024-08-28 542/week @ 2024-09-04 167/week @ 2024-09-11 454/week @ 2024-09-18 270/week @ 2024-09-25 397/week @ 2024-10-02 192/week @ 2024-10-09 451/week @ 2024-10-16 159/week @ 2024-10-23

1,225 downloads per month
Used in 6 crates (5 directly)

MIT license

225KB
6.5K SLoC

This module defines the supported programming languages for ast-grep.

It provides a set of customized languages with expando_char / pre_process_pattern, and a set of stub languages without preprocessing. A rule of thumb: if your language does not accept identifiers like $VAR. You need use impl_lang_expando! macro and a standalone file for testing. Otherwise, you can define it as a stub language using impl_lang!. To see the full list of languages, visit <https://ast-grep.github.io/reference/languages.html>

Dependencies

~5–76MB
~2M SLoC