85 releases (21 breaking)

new 0.22.3 May 13, 2024
0.21.4 May 6, 2024
0.20.2 Mar 27, 2024
0.16.0 Dec 29, 2023
0.3.2 Mar 11, 2023

#407 in Programming languages

Download history 91/week @ 2024-01-21 158/week @ 2024-01-28 74/week @ 2024-02-04 249/week @ 2024-02-11 708/week @ 2024-02-18 409/week @ 2024-02-25 161/week @ 2024-03-03 484/week @ 2024-03-10 145/week @ 2024-03-17 714/week @ 2024-03-24 208/week @ 2024-03-31 732/week @ 2024-04-07 126/week @ 2024-04-14 538/week @ 2024-04-21 564/week @ 2024-04-28 543/week @ 2024-05-05

1,808 downloads per month
Used in 5 crates (4 directly)

MIT license

205KB
6K 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