/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

blog.sylver.dev
| | iter.ca

Let's write some Rust to parse and evaluate Boolean expressions.
1.9 parsecs

Travel
| |
| | thume.ca

[AI summary] This blog post by Tristan Hume details his experience writing a compiler for a course project using Rust. He discusses various aspects of the project including the use of Rust's powerful enums and pattern matching, handling variable and type resolution, reference counting with Rc, code generation for x86 assembly, and the use of usercorn to run Linux binaries on macOS. The post also reflects on the challenges and benefits of using Rust for such a project, comparing it with other languages and design decisions.
3.8 parsecs

Travel
| |
| | dusty.phillips.codes

In part 1 and part 2 of this series, I introduced the project and we wrote some Roc code to load an input file and save the compiled result to a different file. Note: Other articles in this series are collected here. However, we are a long ways from actually having that compiled result available! This article introduces the phases involved in writing a compiler and focus on implementing the first phase, known as lexical analysis or tokenizing.
3.6 parsecs

Travel
| |
| | eli.thegreenplace.net

[AI summary] A technical tutorial explaining the Top-Down Operator Precedence (Pratt) parsing algorithm for handling expression grammars.
20.9 parsecs

Travel
|