Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn Flex & Bison in Action
Rating: 5.0 out of 5(1 rating)
16 students

Learn Flex & Bison in Action

Build Real Lexers & Parsers: Mini SQL, Log Parser, Formula Engine & Custom DSL from Scratch
Created byJames Jiang
Last updated 11/2026
English

What you'll learn

  • - Understand how compiler lexers and parsers work from first principles
  • - Write professional lexical rules using Flex for tokenization
  • - Design grammars and build LR parsers with Bison
  • - Master semantic analysis, symbol tables, and grammar actions
  • - Build 6 complete compiler frontend and DSL projects from scratch
  • - Debug common parser errors, grammar conflicts, and lexical matching issues
  • - Implement mathematical functions, variables, assignments, and file execution
  • - Learn core techniques used in real programming language and DSL development

Course content

7 sections • 32 lectures • 2h 29m total length
  • Introduction & Foundation14:24

Requirements

  • Basic C programming knowledge
  • Basic Linux terminal and Makefile usage
  • No prior compiler or parser experience required

Description

Master Compiler Frontend Development and Build Your Own DSLs from Zero

Most computer science courses teach compiler theory only with abstract formulas and diagrams. This course turns theory into working code. You will learn how real-world lexers and parsers work by building six complete, runnable compiler frontend projects using Flex (lexical analyzer) and Bison (parser generator).

What makes this course unique:

You will not only learn grammar rules or theoretical LR parsing. You will hand-code and debug industrial-style parsers that support variables, arithmetic expressions, functions, file input, error handling, and custom domain-specific languages.

Throughout this course, you will build:

  • A basic calculator expression parser

  • A configuration file parser

  • A custom mathematical formula engine with max/min/abs functions

  • A structured log parser for server log analysis

  • A mini SQL SELECT statement parser

  • A fully functional custom DSL supporting variables, assignments and file execution

All projects are fully compilable with Makefile, support both manual interactive input and file batch input, and include complete error handling. Every line of code is explained so you fully understand how lexers and parsers work under the hood.

No outdated theory — only practical, interview-friendly, project-based compiler knowledge.

Short Description

Learn compiler front-end development by building 6 practical projects with Flex and Bison. Master lexing, parsing, AST basics, and domain-specific language implementation in C.

Who this course is for:

  • Computer Science students learning compiler principles
  • Developers who want to understand how programming languages work
  • Engineers building custom scripting languages or internal DSLs
  • Learners preparing for compiler-related interviews