Перейти к содержимому

How to Build a Compiler from Scratch | Full Guide

Alex The Dev

0:00 / 0:00

How to Build a Compiler from Scratch | Full Guide

19 729 просмотров · 2 года назад
Alex The Dev
12,5 тыс. подписчиков
19 729 просмотров · 2 года назад
https://www.skool.com/alexs-dev-lab-3692 In this video I wanted to create a guide on how to write a compiler from start to finish (including lexer, parser and assembler). repo: https://github.com/alexjercan/compile... cool compiler: https://github.com/alexjercan/cool-co... todo asm: https://github.com/tsoding/todo.asm my dotfiles: https://github.com/alexjercan/nvim.do... Join this channel to get access to perks:    / @alextherealdev   Chapters 00:00:00 Intro 00:04:43 Example of the language 00:06:20 Lexer symbols 00:24:45 Lexer labels 00:27:44 Lexer numbers 00:28:27 Lexer keywords and variables 00:32:10 Complete the lexer 00:35:44 Printing tokens 00:45:16 Parser data structure 01:04:54 Parse program 01:10:36 Parse assignment 01:15:41 Parse expr 01:23:10 Parse IF 01:33:24 Printing the AST 02:09:22 Assembler 02:18:44 Assembler for Assign 02:51:23 Assembler for IF 03:21:42 Assembler for input and output 03:28:21 IT WORKS FIRST TRY!!! 03:29:10 Some finishing touches on the assembler 03:35:49 Conclusion