Andy Balaam's Blog
  • About Andy Balaam
  • All articles
Mini-rust in Rust 027: Parsing blocks of code

We can already parse empty while loops, but now we figure out how to parse the block of code that forms the body of the loop. It should be useful for … ...more

May 02, 2025 [Programming, Programming Languages, Rust, Tech, Videos] #mini-rust
Mini-rust in Rust 026: Parsing an empty while loop

The little real-world snippet we are trying to get working includes a while loop - let's try to get it to parse. For now, only if the actual loop body… ...more

April 25, 2025 [Programming, Programming Languages, Rust, Tech, Videos] #mini-rust
Mini-rust in Rust 025: Parsing let mut

Continuing trying to get the simplest bit of real code we could think of to work, we need to finish off less-than-or-equals, and also make let mut wor… ...more

April 18, 2025 [Programming, Programming Languages, Rust, Tech, Videos] #mini-rust
Mini-rust in Rust 024: Lexing the <= sign

Now we're going to try and get a little code snippet that calculates factorials to work. First up: lexing the <= sign! You can find the source cod… ...more

April 11, 2025 [Programming, Programming Languages, Rust, Tech, Videos] #mini-rust
Mini-rust in Rust 023: Refactor to share structure of the syntax tree

We are repeating ourselves with the SyntaxTree and TypedSyntaxTree enums. I thought the solution would be too complex, but on reflection it's fine, so… ...more

April 04, 2025 [Programming, Programming Languages, Rust, Tech, Videos] #mini-rust
1 2 ...678910 ... 117 118
Recent
Converting a string to an int in Rust (for no reason)
Why I don't use AI (expanded)
Resizing and moving an encrypted LVM volume
Implementing FizzBuzz in Rust (for no reason)
Reversing a string in Rust (for no reason)
Mini-rust in Rust 050: Parsing function definitions
Why do I have 2 passwords? How to talk about encryption in Matrix
Invisible Crypto: can Matrix be both secure and easy to use?
Mini-rust in Rust 049: Lexing an empty function
Mini-rust in Rust 048: Handling variable scope
Mini-rust in Rust 047: Updating types as we get more information
Jez and Andy write a Parser
Jez learns Rust by writing a Lexer
Mini-rust in Rust 046: Type-checking mutations
Mini-rust in Rust 045: Combining two types when we add things
Andy's home page Categories Sitemap RSS Feed

© 2005 onwards Andy Balaam. CC BY-SA except where otherwise stated (source code). Powered by Zola & Abridge