RSSAmplifier

Blog

(untitled)

jhwlr.ioRSS feed ↗2 posts

Latest posts

Super-flat ASTs

In my previous post, I introduced the simp le programming language. Near the end of that post, I mentioned that the parser isn&#x27;t very efficient. Let&#x27;s try to optimize it! If you&#x27;re just curious about the title of the article, you can skip ahead to that section . (Re-)introducing simp First, a quick recap on the programming language being implemented here: fn fibonacci (n) { if n < 2…

A practical introduction to parsing

If you&#x27;re reading this, you probably know how to program a computer. You write some text, and use a special thing called a "compiler" (sometimes also "interpreter") to turn that text into instructions for your computer. I want to attempt to explain a small part of the process of transforming text into those instructions, usually referred to as "parsing", by implementing a parser in Rust in an…