Amazing feats of the Abstract Syntax Tree
summary
Claims that PowerShell exposes its AST is public and that a transpiler can rewrite script blocks into runnable code are demonstrated with concrete tools: PipeScript transpiles to .ps1 via VS Code and GitHub Actions, a module pair (send-event / receive-event) replaces verbose event plumbing, and a repo metric shows ~100k generated lines from the project. Demos run live, PipeScript reports 48 languages supported, and a 700-line PipeScript template produces 700 lines → 3M lines generated of SVG helper code, showing the approach actually scales.
AI-written summary · about
chapters (12)
- 0:00Introduction to the Abstract Syntax Tree
- 3:27Legal PowerShell rules
- 5:13Bending PowerShell syntax
- 6:58PipeScript goals
- 10:09Attribute-based composition
- 14:24PipeScript demos start
- 24:07PipeScript syntax improvements
- 28:25PipeScript keywords and features
- 30:35Commands as sentences
- 37:07Templating other languages
- 41:52Interactive templating examples
- 46:20PipeScript impact and future
related talks
44mJavaScript AST programming: Introduction and beyond
33mEmbracing Black Magic: The Power of Code Transpilation
28mFantastic ASTs and where to find them
22mHow Linters, Compilers & Other Cool Things Work
25mBack to the future of JS II: Beyond what we can foresee
26mMake Your Own Programming Language!
20mThey see me refactorin'. They hatin'
43mMachine Powered Refactoring: Leverage AST's to Push Your Legacy Code (& the Web) Forward
