129 releases (35 breaking)

new 0.36.1 Mar 11, 2025
0.35.0 Feb 15, 2025
0.32.3 Dec 30, 2024
0.30.1 Nov 26, 2024
0.3.2 Mar 11, 2023

#288 in Programming languages

Download history 225/week @ 2024-11-19 955/week @ 2024-11-26 553/week @ 2024-12-03 270/week @ 2024-12-10 864/week @ 2024-12-17 396/week @ 2024-12-24 501/week @ 2024-12-31 483/week @ 2025-01-07 245/week @ 2025-01-14 469/week @ 2025-01-21 5503/week @ 2025-01-28 4509/week @ 2025-02-04 4114/week @ 2025-02-11 3882/week @ 2025-02-18 6150/week @ 2025-02-25 6583/week @ 2025-03-04

21,925 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–72MB
~2M SLoC