Sounds fine to me, what changes to a standard tokenizer and parser would you make to carry out your plan?<p>I&#x27;m not saying this is a shining example of brilliant programming, but it is in a semi-working state and something &quot;in a similar style&quot; (that is, a three-pass tokenizer -&gt; LR parser -&gt; LR parser where scope information and other metadata is computed in the second pass and fed into the third) should be able to handle the changes you&#x27;re talking about.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;dbpokorny&#x2F;autoclave&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dbpokorny&#x2F;autoclave&#x2F;</a>