128 releases (35 breaking)

new 0.36.0 Mar 9, 2025
0.34.4 Feb 2, 2025
0.32.3 Dec 30, 2024
0.30.1 Nov 26, 2024
0.3.2 Mar 11, 2023

#279 in Programming languages

Download history 254/week @ 2024-11-17 507/week @ 2024-11-24 794/week @ 2024-12-01 467/week @ 2024-12-08 844/week @ 2024-12-15 187/week @ 2024-12-22 494/week @ 2024-12-29 455/week @ 2025-01-05 512/week @ 2025-01-12 135/week @ 2025-01-19 4273/week @ 2025-01-26 4845/week @ 2025-02-02 4684/week @ 2025-02-09 3908/week @ 2025-02-16 5717/week @ 2025-02-23 7144/week @ 2025-03-02

21,601 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