115 releases (30 breaking)

new 0.31.1 Dec 8, 2024
0.30.1 Nov 26, 2024
0.25.4 Jul 26, 2024
0.20.2 Mar 27, 2024
0.3.2 Mar 11, 2023

#471 in Programming languages

Download history 346/week @ 2024-08-20 207/week @ 2024-08-27 538/week @ 2024-09-03 186/week @ 2024-09-10 409/week @ 2024-09-17 304/week @ 2024-09-24 395/week @ 2024-10-01 201/week @ 2024-10-08 425/week @ 2024-10-15 219/week @ 2024-10-22 861/week @ 2024-10-29 301/week @ 2024-11-05 293/week @ 2024-11-12 225/week @ 2024-11-19 955/week @ 2024-11-26 535/week @ 2024-12-03

2,144 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–75MB
~2M SLoC