Parser Hacking [04]: Parsing Grouped Expressions and Multiple Expressions
Tim Morgan
In this video, we struggle a bit (but finally prevail) to parse expressions grouped with parentheses. Also we add the ability to parse multiple expressions.
0:00 Skipping newlines before an expression 3:40 Parsing grouped expressions 22:24 Found my error! 25:23 Parsing multiple expressions 38:11 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.
About the Parser: We're rebuilding our parser from scratch so we can stop using the ruby_parser gem someday.
GitHub: https://github.com/seven1m/natalie Twitter: https://twitter.com/timmrgn
My OS: Ubuntu or Manjaro Linux (depending on which machine I'm on) with Gnome running the Dash to Panel extension. My Editor: Neovim with coc.nvim (intellisense), ALE (linting and auto formatting), CtrlP (jump to file), and the Gruvbox theme.
#programming #ruby #cpp #parsers #compilers #recursivedescentparser ... https://www.youtube.com/watch?v=1Ly-8Xn3sX8
275732262 Bytes