========================= Parser and Code Generator [TOC] ========================= Initial code, the used ISA, and the code created in this video are provided below. ---- VIDEO ------------------------------ https://www.youtube.com/embed/t8V7_O7R0PY ----------------------------------------- __Slides__ :links: Slides -> https://www.mathematik.uni-ulm.de/numerik/hpc/ss24/hpc0/pdf/s13_1.pdf Initial Code ============ In this session, the lexer from session 11 is used as a building block. It should recognize at least *decimal literals* and the tokens `+`, `*`, `(`, and `)`. You can use your code (eventually extended to support these tokens) or the code provided here: :import: session13/initial_code/lexer.hdr [fold] :import: session13/initial_code/lexer.abc [fold] :import: session13/initial_code/xtest_lexer.abc [fold] ISA Used by the Compiler ======================== :import: session13/initial_code/simple.isa [fold] Code Implemented in the Video ============================= :import: session13/final_code/xtest_parser.abc [fold] Some Old Version ---------------- By mistake this outdated version (`parseExpr` is called here `parseSum` etc.) was uploaded before. I keep it online for historical reasons ;-) :import: session13/final_code_old/xtest_parser.abc [fold]