97 releases (24 breaking)

new 0.25.4 Jul 26, 2024
0.24.1 Jun 26, 2024
0.20.2 Mar 27, 2024
0.16.0 Dec 29, 2023
0.3.2 Mar 11, 2023

#382 in Programming languages

Download history 527/week @ 2024-04-04 353/week @ 2024-04-11 268/week @ 2024-04-18 394/week @ 2024-04-25 871/week @ 2024-05-02 705/week @ 2024-05-09 158/week @ 2024-05-16 343/week @ 2024-05-23 553/week @ 2024-05-30 392/week @ 2024-06-06 155/week @ 2024-06-13 493/week @ 2024-06-20 368/week @ 2024-06-27 120/week @ 2024-07-04 408/week @ 2024-07-11 383/week @ 2024-07-18

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

MIT license

215KB
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–80MB
~2M SLoC