[HD] EECS4302 F26 - 2026-09-10 (Thursday) - Lecture 1
Overview
Jackie Wang introduces EECS 4302 as a compiler-building course that combines computation theory, Java programming, parsing, and a substantial hands-on project. He outlines a proposed assessment structure, course resources, and a compiler workflow using ANTLR 4, while emphasizing that students need to understand and test generated code rather than rely on AI without judgment.
Key takeaways
- EECS 4302 connects Theory of Computation to compiler implementation by progressing from regular expressions and finite automata to context-free grammars, parsing, and abstract syntax tree transformations.
- ANTLR 4 generates scanner and parser components from token and grammar specifications, leaving students to implement the recursive transformations that give a compiler its behavior.
- The proposed assessment places 50% on the final exam, 24% on a milestone-based compiler project, and 10% each on a programming test and written test, with assignment credit tied to timely attempts.
- Students may use Java resources from courses 1022, 2030, and 2011 to prepare, but must submit the programming test and project in Eclipse-compatible form.
- Wang permits collaboration and generative AI for programming assignments, while emphasizing that students remain responsible for testing, debugging, and understanding generated code.
- The course project is designed to provide hands-on experience with a small domain-specific language, including compiler design decisions, implementation, reporting, and presentation.
Chapters
- Jackie Wang welcomes students to the 2026 offering of EECS 4302, a course on compilers and interpreters.
- He invites students to ask questions, discuss side projects, and contact him by email or during office hours.
- Wang plans an anonymous midterm course evaluation during reading week and a later survey about lecture digests.
- He encourages students to keep up with lecture materials as preparation for tests and the final exam.
- The course site will provide lecture materials, past projects, assignment instructions, recordings, and announcements.
- Students will implement the compiler in Java; Wang recommends reviewing introductory Java, inheritance, polymorphism, dynamic binding, trees, and recursion.
- Java resources include material from courses 1022, 2030, and 2011, with 2030 inheritance content highlighted for polymorphism and design patterns.
- Eclipse is required for the programming test and project submissions, although students may practice in another IDE if they can export the work in the required format.
- The course revisits Theory of Computation topics including DFA, NFA, regular expressions, DFA minimization, context-free grammars, and parsing.
- GitHub use is optional; Wang says students may publish assignments or projects if they choose.
- A recorded ANTLR 4 tutorial will show how a parser generator creates a compiler skeleton from language specifications.
- Assignment 2 will use the tutorial as a warm-up mini-compiler exercise, released around a week before reading week.
- The lecture site provides a reusable notes template, lecture recordings, annotated notes, and lecture digests.
- Wang describes the digests as AI-assisted summaries based on transcripts, slides, and handwritten notes, then proofread for accuracy.
- The course site is the main location for study resources, while eClass will carry key announcements and additional instructions.
- Students can use recordings and notes to review examples or address gaps in understanding after class.
- The syllabus may change through the second week; Wang plans to finalize the attendance bonus and other details before the next class.
- Each of the three programming assignments earns credit for submitting an honest attempt by the deadline, including a partially completed attempt.
- Collaboration, tutors, and generative AI are permitted for assignments, but Wang advises students to work through the programming challenges themselves.
- There is no required textbook; optional references include Engineering a Compiler and a classic compiler text, with library access suggested.
- The proposed grading scheme assigns 6% to three programming assignments, 24% to the project, 10% each to the programming and written tests, and 50% to the final exam.
- The project will have two milestones and a final submission, with a possible presentation component.
- The programming test is an individual, 80-minute Java task requiring students to build a small compiler in Eclipse.
- Wang says he may adjust weight between the final and individual tests based on how students perform, and will confirm the attendance bonus, expected to be at least 5%.
- Students are asked to install iClicker and join EECS 4302 for an attendance trial on Tuesday, followed by regular use.
- The programming test is scheduled for November 5, 2026, and the written test for November 19, subject to room arrangements.
- Assignment 1 is expected in week 3; Assignment 2 and the project are planned for release around week 5, before reading week.
- Project milestones require concrete deliverables, such as a team-members text file and an Eclipse Java project export, with criteria specified in advance.
- Planned topics include compiler overviews, scanner and parser foundations, parsing algorithms, ANTLR 4, and the composite and visitor design patterns.
- Wang expects to review relevant material even for students who have already studied software design or Theory of Computation.
- Because Wang teaches another class immediately afterward, in-person meetings will end after 75 minutes rather than the scheduled 80.
- He plans to make up the accumulated five-minute difference through compiler tutorials or asynchronous material.
- Wang argues that fundamentals remain important because AI can hallucinate or produce unsuitable results when instructions are incomplete or ambiguous.
- Students should test AI-generated compiler code thoroughly before relying on it in a project.
- He identifies testing, debugging, independent reasoning, and professional judgment as skills the course aims to develop.
- Relying on AI without understanding the result creates cognitive debt that can cause problems later.
- Java, C, C++, and Python are examples of general-purpose languages suited to problems across domains.
- SQL is a domain-specific language for data storage and queries, while propositions and predicates can specify constraints.
- Assignment 2 and the project will focus on small domain-specific languages with limited syntax.
- Wang previews an example of compiling Java-related expressions into SQL and notes that such a compiler requires explicit assumptions.
- The scanner converts source text into tokens, such as Java keywords and variable identifiers.
- Regular languages can be described with DFA, NFA, epsilon-NFA, and regular expressions.
- Wang says these notations are equivalent and that the course will study conversions among them.
- Scanner theory links the course's Theory of Computation review to practical token recognition.
- A context-free grammar describes recursive structures in an input language and supports parsing beyond regular-language patterns.
- The course compares top-down and bottom-up parsing algorithms for checking whether an input string matches a grammar.
- Assignment 3 will ask students to implement one parsing algorithm in Java, with JUnit tests and possibly partial starter code.
- Parsing produces an abstract syntax tree, which becomes the structure used for later compiler transformations.
- Wang sketches a pipeline from an input program through scanning, token generation, parsing, and abstract syntax tree construction.
- ANTLR 4 automates scanning and parsing when students specify token regular expressions and a context-free grammar.
- Students implement the remaining recursive transformations that convert the syntax tree into the desired output.
- Project assessment may include a written report and presentation, and the next class will introduce compiler examples and past projects.
Transcript excerpt
0:05 All right, welcome everybody. Uh nice to see every one of you. Uh it's 4302 uh compilers and interpreters um for 2026. So today I'm not going to cover too many things technical. Uh maybe a little bit introduction about what compiler is and then uh rough uh then maybe next Monday I'll speak more about what this course really is about. But today I just want to sort out uh grading scheme and also how I'm going to run the course etc. There will be some protocol as well. So that's what I want to clarify today. Okay. Uh it's a very small group. If there's any question please do let me know. Okay. Uh feel free to call me Jackie. So for those of you who already took a course with me, you know that I'm informal. Okay. Jackie, professor, professor Jackie, whatever you like. Okay. Uh I've
0:54 been here for a long time. I even took the same course when I was a student at York uh back in 2005. They don't really offer this course uh very often which is a shame. It's a very good course as I will try to give you some motivation to really uh get engaged. You definitely can get a lot of uh value just beyond the grading scheme from this course. That's something I would tell you gradually. Okay. But if you need any advice about a course or maybe you want to do some side projects as we learn how to build a compiler, do let me know. We can definitely talk either uh during office hour or maybe uh make appointment. Okay, just to let you guys know, I will be teaching another class 3342 right after this one. So, you'll be just next room over there. So, usually I
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.