88 releases (21 breaking)

new 0.22.6 Jun 5, 2024
0.22.4 May 27, 2024
0.20.2 Mar 27, 2024
0.16.0 Dec 29, 2023
0.3.2 Mar 11, 2023

#369 in Programming languages

Download history 362/week @ 2024-02-13 841/week @ 2024-02-20 207/week @ 2024-02-27 317/week @ 2024-03-05 306/week @ 2024-03-12 485/week @ 2024-03-19 406/week @ 2024-03-26 499/week @ 2024-04-02 429/week @ 2024-04-09 101/week @ 2024-04-16 564/week @ 2024-04-23 638/week @ 2024-04-30 868/week @ 2024-05-07 219/week @ 2024-05-14 291/week @ 2024-05-21 366/week @ 2024-05-28

1,842 downloads per month
Used in 6 crates (5 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–75MB
~2M SLoC