Visual statical analysis tool
summary
A concrete tool exists that starts from a CFG parser (too slow: jquery at 46k in 24 seconds) then switches to a handwritten tokenizer for linear performance. It gives syntax highlighting, variable lookup and scope depth, naive but working type inference and property resolution, dead‑code detection, jslint‑style warnings, a basic minifier and beautifier, and a parse‑tree viewer. The result installs as a bookmarklet that turns any textarea into the analyzer and mostly works in the browser.
AI-written summary · about
chapters (13)
- 0:00Intro
- 0:42JavaScript parser
- 1:08Regular expressions
- 1:43Concrete parse tree
- 3:00Salt problem
- 3:20Tokenizer
- 3:58Index highlighting
- 4:38Carrots
- 4:57Layout
- 5:41Orientation
- 6:53Insights
- 7:32Properties
- 8:04Tools
related talks
27mSweet sixteen, but where are the tools?
29mMy Little Parser: Tooling is Magic
27mParsing, Compiling, and Static Metaprogramming
31mAdvanced JavaScript code search: Abstract Syntax Tree analysis
26mJavaScript Tools at Scale Using Type Information
31mAST à la Vista, Baby
39mTree-sitter - a new parsing system for programming tools
35mJavaScript/Web tooling now and tomorrow
