Erlang Tree-sitter Playground
⚙️ with ❤️ by
@leostera
Code
Erlang
Query
-module(hello_joe). -export([main/1]). % that's right. we got this. main([]) -> ok; main([Name | _]) -> io:format(<<"Hello, ~p!">>, [Name]).
Query
( (function_clause name: (atom) @name) (#match? @name "main") )
Tree