File:Implementing a Lox interpreter in Rust.webm

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(WebM audio/video file, VP9/Opus, length 7 h 53 min 41 s, 2,560 × 1,440 pixels, 1.27 Mbps overall, file size: 4.22 GB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: For some time I've been looking for an opportunity to do a stream on writing a parser + interpreter for... something. Anything really. I've wanted to implement a parser following matklad's excellent article on Pratt parsing ( https://matklad.github.io/2020/04/13/simple-but-powerful-pratt-parsing.html ), though honestly anything in the area of parsing would do. Well, CodeCrafters have recently released a new challenge in beta that follows Robert Nystrom's Crafting Interpreters book ( https://craftinginterpreters.com/ ), so I jumped at the opportunity. Join me in working through the challenges, or try it yourself first and compare notes after the fact!

You can access the challenge over at https://app.codecrafters.io/join/interpreter?via=jonhoo , which also gives you 7 days free access, or in free source form (without the nice infrastructure) at https://github.com/codecrafters-io/build-your-own-interpreter .

You can find my solution code over at https://github.com/jonhoo/lox

You can join my Discord at https://discord.jonhoo.eu/

0:00:00 Introduction 0:07:36 What is compilation? 0:28:54 The Lox language 0:44:26 Lexing single-character tokens 1:40:31 Lexing multi-character tokens 2:14:18 Lexing numbers 2:47:54 Lexer errors 3:05:37 Lexing comments 3:15:53 Lexing strings 3:29:13 Printing numbers 3:36:09 Outlining the (Pratt) parser 4:16:41 Parsing expressions 5:01:18 Parsing special statements 5:58:56 Extract out statement parser 6:38:42 Finish up expression parser 6:49:34 Printing token trees 6:59:47 Trying out the parser 7:29:13 Aligning with expected output 7:37:02 Tests falling like dominoes 7:50:41 Outro

Live version with chat: https://youtube.com/live/FdZmJ0DAmn4
Date
Source YouTube: Implementing a Lox interpreter in Rust – View/save archived versions on archive.org and archive.today
Author Jon Gjengset

Licensing

[edit]
This video, screenshot or audio excerpt was originally uploaded on YouTube under a CC license.
Their website states: "YouTube allows users to mark their videos with a Creative Commons CC BY license."
To the uploader: You must provide a link (URL) to the original file and the authorship information if available.
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
Attribution: Jon Gjengset
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
This file, which was originally posted to an external website, has not yet been reviewed by an administrator or reviewer to confirm that the above license is valid. See Category:License review needed for further instructions.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:28, 29 September 20247 h 53 min 41 s, 2,560 × 1,440 (4.22 GB)Momiji-Penguin (talk | contribs)Imported media from https://www.youtube.com/watch?v=mNOLaw-_Buc

The following page uses this file:

Transcode status

Update transcode status
Format Bitrate Download Status Encode time
VP9 1080P Not ready Error on 05:03, 30 September 2024
VP9 720P Not ready Error on 05:04, 30 September 2024
VP9 480P Not ready Error on 05:02, 30 September 2024
VP9 360P Not ready Error on 05:01, 30 September 2024
VP9 240P 142 kbps Completed 08:16, 30 September 2024 3 h 15 min 42 s
WebM 360P Not ready Error on 05:02, 30 September 2024
Streaming 144p (MJPEG) Not ready Error on 05:00, 30 September 2024
Stereo (Opus) 79 kbps Completed 05:13, 30 September 2024 8 min 29 s
Stereo (MP3) 128 kbps Completed 05:16, 30 September 2024 11 min 2 s

Metadata