Complex parsing: nested ifs, blocks, functions, calls, etc
TL;DR: you might fall asleep multiple times as it's a very long video (still with few excited hoorays), but it exposes all the details according to the promise of "showing everything" (see the Pomplamoose remark below). Try 1.5x speed, it helped me with re-watching it 😅 This video is the long awaited bridge from the very much toy but still a cool language we've implemented so far to a more JS like language with conditionals, function definitions and calls and even blocks of statements. As we build on the shoulders of giants some of the most advanced parts (like nested if-else statements without blocks) just snap in freely. To be hones, I re-watched the video myself 2 weeks later and got hooked up few times esp. around the expression / statement conundrum. The full patch for the video turned out to be not that big: https://github.com/peter-leonov/picojs/compare/b1865c9..5e96580 Chapters: 0:00 Intro 3:43 Why adding more syntax 7:38 A romantic note on Pomplamoose 9:03 The plan for today 11:12 Strings 36:10 Statements 53:46 ids 58:08 ifs 1:28:20 Nested ifs 1:29:45 Else 1:54:58 Functions 2:23:57 Blocks 2:31:34 Calls 2:50:06 Outro 8⪬ - - - - - - - - - - - - - - - - - - - - - The Pomplamoose format explained: 1. What you see is what you hear. 2. If you hear it, at some point you see it. https://en.wikipedia.org/wiki/Pomplamoose#History
Download
0 formatsNo download links available.