Obsidian Source: Notes / YeetCode
Summary
Pending synthesis from local Obsidian source.
Original source title: Yeetcode
Extracted Preview
*A programming language is a human language that describes what happens when we push the beans of the abacus.*
Language Basics - Parsing and Interpreting
Parsing : Conversion of source code text into a tree representing relationships among tokens.
Grammar : A list of rules to convert tokens into trees and trees into bigger trees.
Lark
Lark is use to parse any context free grammar. It can build parse-tree automagically - and can run on any python interpreter.
Parse tree generally has too much detail - but in order to understand the meaning of the program, we can use an Abstract Syntax Tree.
The interpreter does that only - repeatedly walk over the AST, evaluating at each step.
A compiler scans the AST to generate a sequence of machine translations, natively recognized and executed by the computer.
I guess metaprogramming helped. Yeetcode is out in the world.
Integration Notes
- Source folder:
/home/yashs/Documents/Docs/Obsidian/Research-Notes - Local source:
/home/yashs/Documents/Docs/Obsidian/Research-Notes/Notes/YeetCode.md - Raw copy:
raw/obsidian/research-notes/Notes/YeetCode.md