9

Writing a Programming Language (in Rust) 2: Branching, Literals and Addition

 2 years ago
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.
neoserver,ios ssh client

Writing a Programming Language (in Rust) 2: Branching, Literals and Addition

28 views
Oct 24, 2021

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

Sort by
default-user=s48-c-k-c0x00ffffff-no-rj
Add a public comment...

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK