Save this video free

[HD] EECS4302 F26 - 2026-09-22 (Tuesday) - Lecture 4

Jackie Wang · 1:11:21 · Watch on YouTube

Part of York University EECS3342/EECS4302. See all 36 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Jackie Wang explains compiler construction as a sequence of representations: Java source characters become tokens, tokens become parse trees, and semantic analysis can validate or transform those trees before output. The lecture connects compiler correctness to semantics-preserving optimization, illustrating loop-invariant code motion for `2 * b * c` and the parsing-to-pretty-printing workflow; it also previews Assignment 1 and upcoming lexical-analysis work with ANTLR 4.

Key takeaways

Chapters

0:00 Course Plan: Assignment 1 and Upcoming Compiler Topics
4:28 Compiler Optimizers Between Front End and Back End
9:26 Compiler Correctness: Preserve Meaning Across IRs
14:24 Three Compiler Analyses and the Scanner–Parser Split
22:14 Parser Input, Context-Free Grammars, and Parse Trees
24:10 Java Lexical Analysis: Characters Become Tokens
32:48 From Token Sequences to Nonlinear Abstract Syntax Trees
38:17 Semantic Analysis: Validate or Transform a Parse Tree
41:47 English Essay Analogy: Spelling, Grammar, and Meaning
49:49 Recursive Grammar Rules Generate Loop Syntax
57:13 Parse Trees Accept Syntax That Type Checking Rejects
1:02:34 Representing the Original Loop as an AST
1:04:52 AST Optimization Moves `2 * b * c` Outside the Loop
1:07:03 Parsing, AST Transformation, and Pretty Printing

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:05 All right. So, some quick reminders. Oh, sorry. I can pardon it. There we go. Okay. So, the lecture digest from last Thursday is already there. So, today we're going to do one more uh class just about the overall picture for compilation. And then starting from Thursday for sure we get things a little bit more technical especially we're going to talk about how you can do uh lexical analysis. Okay so [snorts] that's something we'll talk about. Okay sorry hoping to get rid of it. Okay you know what let me try to get rid of it otherwise it's a bit annoying. Okay so the lecture digest from last Thursday is already there. Please check it out and also the notes template. And

0:54 then uh this is something I want to let you guys know first because uh on schedule I'm supposed to release your assignment number one which I think I should so you guys can just get busy uh to do something. Okay. And I'll talk more about it. We can potentially maybe do a little bit of startup uh work together. Maybe uh in the first five or 10 minutes on Thursday. We can definitely do that. I think that's going to help you guys. Especially for those of you who maybe haven't done Java for a while. We can do it together. But if you look at the calendar here. Okay, let's see where we are. Okay, so we are now lecture number four. So as I said, I'm going to spend just one more lecture. There might be one little case study about how you can do object relational bridge. That one there I might just skip just for now. But the slice is there. You can definitely take

1:41 a look just for background. You can

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Jackie Wang.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.