<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Parsing on Arthur Baboin</title><link>https://blog.deadgate.fr/tags/parsing/</link><description>Recent content in Parsing on Arthur Baboin</description><generator>Hugo</generator><language>en</language><copyright>© Arthur Baboin</copyright><lastBuildDate>Fri, 26 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.deadgate.fr/tags/parsing/index.xml" rel="self" type="application/rss+xml"/><item><title>Parsing Oracle text into a typed AST</title><link>https://blog.deadgate.fr/mtg-compiler/02-parsing-oracle-text/</link><pubDate>Fri, 26 Jun 2026 00:00:00 +0000</pubDate><guid>https://blog.deadgate.fr/mtg-compiler/02-parsing-oracle-text/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Placeholder.&lt;/strong&gt; This page validates Mermaid diagram rendering. Replace the
body with the real write-up.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The front end turns raw Oracle text into a typed abstract syntax tree:&lt;/p&gt;
&lt;div class="mermaid" align="center"&gt;
 
flowchart LR
 A[Oracle text] --&gt; B[Lexer]
 B --&gt; C[Tokens]
 C --&gt; D[Parser]
 D --&gt; E[Typed AST]

&lt;/div&gt;

&lt;p&gt;Each stage gets its own treatment: how the lexer handles reminder text and mana
symbols, and how the grammar copes with the long tail of one-off templating
while still producing a well-typed tree.&lt;/p&gt;</description></item></channel></rss>