85 releases (21 breaking)

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

#365 in Programming languages

Download history 175/week @ 2024-01-29 58/week @ 2024-02-05 259/week @ 2024-02-12 861/week @ 2024-02-19 272/week @ 2024-02-26 137/week @ 2024-03-04 492/week @ 2024-03-11 300/week @ 2024-03-18 572/week @ 2024-03-25 193/week @ 2024-04-01 755/week @ 2024-04-08 100/week @ 2024-04-15 561/week @ 2024-04-22 561/week @ 2024-04-29 757/week @ 2024-05-06 402/week @ 2024-05-13

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