126 releases (33 breaking)

0.34.4 Feb 2, 2025
0.33.1 Jan 13, 2025
0.32.3 Dec 30, 2024
0.30.1 Nov 26, 2024
0.3.2 Mar 11, 2023

#282 in Programming languages

Download history 519/week @ 2024-10-25 540/week @ 2024-11-01 381/week @ 2024-11-08 254/week @ 2024-11-15 484/week @ 2024-11-22 804/week @ 2024-11-29 485/week @ 2024-12-06 807/week @ 2024-12-13 238/week @ 2024-12-20 454/week @ 2024-12-27 487/week @ 2025-01-03 503/week @ 2025-01-10 168/week @ 2025-01-17 3064/week @ 2025-01-24 4896/week @ 2025-01-31 4937/week @ 2025-02-07

13,138 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