Thinking Elixir Podcast cover image

99: Slipstream and Tree-Sitter with Michael Davis

Thinking Elixir Podcast

00:00

Tree Sitter, IEX - Injections

Tree sitter has a feature called injections. Injections allow you to take a kind of block that you mark as an injection and you can just inject another tree sitter into it. You don't need to have any knowledge about what tree sitter, Lixr is doing. When it parses its syntax tree, you can just say, I'm going to go and inject tree sitter,. Lixr into this part of the grammar. And that's how heaks works as well, actually. So if you have sigil H, you can pull apart that sigil H and say, OK, I want everything inside that sigilH to be marked as heaks

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