BWBrandon Wonginblog.brandonw3612.com·Nov 17, 2025 · 9 min readControlled Branching Processes: A Case Study in Structured SamplingBackground & Problem Statement Earlier this week, we were developing a random AST sampler for a toy language, which is a small subset of a folklore language, IMP. It has a really simple syntax: syntax AExp ::= Int | Id | AExp "/" AExp ...00
BWBrandon Wonginblog.brandonw3612.com·Oct 24, 2025 · 4 min readJust Created a Tree-sitter Parser: Now What?The authors of Tree-sitter have provided detailed documentation on creating your own language parsers. So, following the tutorial, you have meticulously crafted your own grammar using tree-sitter-cli. You ran tree-sitter generate as the docs instruct...00