arborium-elixir 2.3.2

Elixir grammar for arborium (tree-sitter bindings)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
defmodule MyApp.User do
  @moduledoc "User module for handling user data"

  defstruct [:name, :email, :age]

  def new(name, email, age) do
    %__MODULE__{name: name, email: email, age: age}
  end

  def greet(%__MODULE__{name: name}) do
    "Hello, #{name}!"
  end
end

user = MyApp.User.new("Alice", "alice@example.com", 30)
IO.puts(MyApp.User.greet(user))