devtools.fm: Developer Tools, Open Source, Software Development cover image

Herrington Darkholme - AST Grep, Searching Code with Code

devtools.fm: Developer Tools, Open Source, Software Development

00:00

Exploring AST-Grep: A Revolution in Code Search

This chapter explores the capabilities of AST-Grep, a tool that enhances code searching using abstract syntax trees for a deeper understanding of code structure. It contrasts traditional text search methods with AST-Grep's ability to support complex searches and maintain code formatting, emphasizing ease of use for developers. Additionally, it discusses the implementation of a rule-based system for precise code transformations, addressing challenges like multi-line patterns and the nuances of indentation-sensitive languages.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app