

Writing a Programming Language (in Rust) 2: Branching, Literals and Addition
source link: https://www.youtube.com/watch?v=rBGPAmfsVjo
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Writing a Programming Language (in Rust) 2: Branching, Literals and Addition
This is episode 2 of the "Writing a Programming Language (in Rust)" livestream series, where I'll be implementing a skeleton C-style programming language from scratch using Rust and LALRPOP.
The live stream is ongoing at https://www.twitch.tv/ezanmoto. I generally stream at 14:00 GMT each Saturday.
The source code for the stream is available at https://github.com/eZanmoto/norpl.
In this session I was implementing the following features:
* `if` and `else` statements * String literals, without support for escaping characters * Integer addition * The `+=` assigment shorthand * `while` loops * List literals, with support for trailing commas
I also spent a portion of time resolving a grammar ambiguity resulting from the initial implementation of trailing comma support in list literals.
Show lessShow more
0 Comments
Recommend
-
8
Writing a Programming Language (in Rust) 6: Function calls (Part 2) This is episode 6 of the "Writing a Programming Language (in Rust)" livestrea...
-
10
Writing a Programming Language (in Rust) 7: Function calls (Part 3)87 viewsNov 14, 2021 This is episo...
-
10
Writing a Programming Language (in Rust) 9: Implementing Value References56 viewsDec 4, 20216DislikeShareSave
-
14
0:01 / 1:08:03 ...
-
10
0:00 / 2:05:26 ...
-
9
Writing a Programming Language (in Rust) 15: Implementing `this`68 viewsFeb 11, 20223DislikeShareSave
-
9
Writing a Programming Language (in Rust) 14: Compiler Resources and Function Argument Destructuring156 viewsFeb 1, 20229DislikeShare
-
9
Writing a Programming Language (in Rust) 13: Object Destructuring (Part 2) and Fixing Recursion223 viewsJan 29, 20227DislikeShare...
-
7
0:00 / 3:19:09 ...
-
15
0:00 / 2:28:52 ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK