78 releases (20 breaking)

new 0.21.1 Apr 24, 2024
0.20.5 Apr 11, 2024
0.20.2 Mar 27, 2024
0.16.0 Dec 29, 2023
0.3.2 Mar 11, 2023

#463 in Programming languages

Download history 172/week @ 2024-01-02 255/week @ 2024-01-09 120/week @ 2024-01-16 43/week @ 2024-01-23 189/week @ 2024-01-30 50/week @ 2024-02-06 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 87/week @ 2024-04-16

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

MIT license

200KB
5.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–70MB
~2M SLoC