7

Writing a Programming Language (in Rust) 15: Implementing `this`

 2 years ago
source link: https://www.youtube.com/watch?v=TLy-59WtTX8
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) 15: Implementing `this`

68 views
Feb 11, 2022

242 subscribers

This is episode 15 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:

0:11:04 Function Expressions 0:38:36 Lighter property lookup syntax 1:01:55 `this` functionality 1:32:17 Continue `this` functionality 2:45:45 Iterating over objects 2:52:26 Implementing plus

In addition there was a considerable time in this session spent on the following topics:

0:00:00 Discussing the project: Discussing the project, demonstrating function closures, philosophies of object access, and what'll be done next 0:23:25 First attempt at safe lookups: This attempted to have indexing return `[value, ok]` pairs, but resulted in more complicated access 0:56:54 Correct parser precedence rules 1:11:42 Answering the chatroom: Discussing some of the shortcuts being taken in the work-in-progress branch 1:19:59 Answering the chatroom: Discussing some of the shortcuts being taken in the work-in-progress branch, and discussing the project 2:53:34 Recap of the session


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK