Parser Hacking [01]: Setting up our Recursive Descent Parser Boilerplate | Parsing Int and String
Tim Morgan
This is just the beginning! In this video we set up some very basic boilerplate and teach our parser how to scan through the tokens recognizing integers and strings.
0:00 Intro and how Natalie parses currently 8:19 Writing the parser boilerplate 26:22 Parsing integers 36:49 Parsing empty program 37:54 Parsing strings 40:08 Thanks for watching!
About the Project: Natalie is a very early-stage work-in-progress Ruby implementation that compiles Ruby to an executable. It does so by transpiling Ruby to C++ and feeding it to gcc or clang to produce a binary.
GitHub: https://github.com/seven1m/natalie Twitter: https://twitter.com/timmrgn
#programming #ruby #cpp #parsers #compilers #recursivedescentparser ... https://www.youtube.com/watch?v=lwa-Fk2z6Q0
231166889 Bytes