Latest #ast Threads Top

mudasobwa
Metastatic is a library that provides a unified MetaAST (Meta-level Abstract Syntax Tree) intermediate representation for parsing, transf...
New
mudasobwa
I know I put the cart before the horse, but AI providers started this race, not me. Welcome Typle, the library that leverages a modern E...
New
Alex66
Giulia runs as a persistent OTP daemon — AST indexes, knowledge graph, and embeddings stay warm in ETS between sessions. No cold starts, ...
New
pxp9
Meet my trip building LazyDoc from scratch, exploring Elixir ASTs and combine it with a simple AI prompt you can generate fairly accurate...
New
kerryb
I have some AST rewriting code (using Sourceror) that has started failing in Elixir 1.18 – I believe because unquote has become stricter ...
New
feld
I have this situation where I have a list of modules in a module attribute to be used for another purpose and I also want to “use” them, ...
New
nhpip
Hi, As the title states, I want to reject an AST with function calls. This seems to work, is there a better way? @invalid_ast_ops [:....
New
sodapopcan
I go through bouts of playing around with re-writing source-code using Sourceror. It generally goes: I learn a whole bunch, start gettin...
New
janp
I am currently stuck in implementing a macro :thinking: Here’s the code I currently have (without unnecessary code): defmacro request(op...
New
larshei
I have a number of different notifications, each identified by an id (example “ticket_closed”). This ID can later be used to select the ...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

mudasobwa
Metastatic is a library that provides a unified MetaAST (Meta-level Abstract Syntax Tree) intermediate representation for parsing, transf...
New
Alex66
Giulia runs as a persistent OTP daemon — AST indexes, knowledge graph, and embeddings stay warm in ETS between sessions. No cold starts, ...
New
mudasobwa
I know I put the cart before the horse, but AI providers started this race, not me. Welcome Typle, the library that leverages a modern E...
New

Last Three Year's Trending Top

Qqwy
This morning, I came to a sudden realization: Elixir’s Macro system is even more powerful than I’d thought. My mind is blown. Let me tr...
New
smetana
Hello all, I need to convert AST with possible long binary to string. Macro.to_string() uses Inspect and Inspect has the printable_limi...
New
pxp9
Meet my trip building LazyDoc from scratch, exploring Elixir ASTs and combine it with a simple AI prompt you can generate fairly accurate...
New
christhekeele
I’m doing some questionable meta-programming, and could use your help! I’m using Macro.prewalk to traverse some source code, with the go...
New
larshei
I have a number of different notifications, each identified by an id (example “ticket_closed”). This ID can later be used to select the ...
New
sodapopcan
I go through bouts of playing around with re-writing source-code using Sourceror. It generally goes: I learn a whole bunch, start gettin...
New
feld
I have this situation where I have a list of modules in a module attribute to be used for another purpose and I also want to “use” them, ...
New
PID_ONE
I’m trying to write a couple of mix format plugins for my project. So far I’ve been able to achieve most of what I want (e.g. rewriting f...
New
janp
I am currently stuck in implementing a macro :thinking: Here’s the code I currently have (without unnecessary code): defmacro request(op...
New
jkbbwr
I want to work on a DSL that looks very similar to unit tests, define some steps but the steps are linked step "step 1" do IO.puts("...
New
phgrey
Have some experience with Macro: Macro.prewalk helps me a lot with module converting. Some of modules have sigil_F macros inside (surfac...
New
kerryb
I have some AST rewriting code (using Sourceror) that has started failing in Elixir 1.18 – I believe because unquote has become stricter ...
New
nhpip
Hi, As the title states, I want to reject an AST with function calls. This seems to work, is there a better way? @invalid_ast_ops [:....
New

Trending Over Three Years Top

tim2CF
Is it possible to decompile BEAM files with :debug_info chunk to actual Elixir source code? This data is from :debug_info iex(2)> Sec...
New
hansonkd
Hi. I am making a library for user submitted templates (so users can customize email content). I have a parser which parses the template...
New
dorgan
Lately I’ve been digging into the elixir AST for learning purposes. There is a section in the elixir docs(Syntax reference — Elixir v1.19...
New
sbrink
Hi, I want to modify elixir files based on the AST. For the result I want to the elixir formatter. For a prototype I tried the followin...
New
bartblast
Suppose we’ve got the following module: defmodule TestModule do defmacro test_macro(param1, param2, param3) do quote do para...
New
dorgan
Now that the next Elixir version will add Code.quoted_to_algebra/2 and Code.string_to_quoted_with_comments/2, we’re able to take some sou...
New
tim2CF
Hey! I’m playing around with macro and I’m thinking - is it possible to completely expand quoted expression (including all private and p...
New
grych
Dear Alchemists, Assume I have an AST fragment with some unbound variables: iex(1)> expr = quote do: IO.puts(x) {{:., [], [{:__alias...
New
hst337
Summary Is there any way to write a function which can be invoked in compile time and which can return an AST and Macro.Env of given func...
New
smorin
I am looking for a way to read in a elixir module and replace functions with code you want to run. Anyone know of any examples of code o...
New
dmitriid
It’s one of those “if you try it, you can figure it out” questions. I’m just hoping someone has already done this before and has some qui...
New
chulkilee
I found Code.string_to_quoted/2 returns quoted expression, but couldn’t find a way to rebuild it to code. Also, it has all location infor...
New
Eiji
Hey, I would like to ask if there is a simple way to map/traverse Elixir project (*.ex and *.exs) files … defmodule Example do def get...
New
marick
Sometimes an argument to a macro is to be used as the name of a function being created with def. That’s straightforward[*]. But suppose ...
New
roehst
Hi, I have been playing around with the Elixir AST (trying to help with an Issue in Credo) and I found two things that I would like to kn...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement