- A class of errors called “early errors” is run against the source to check for mistakes like reserved words in invalid contexts, strict mode violations, and variable name clashes before running the actual parser. BinaryAST can spot these errors ahead of time, before runtime.
- Parsing low-level types, like numbers from text, requires extra computation, and some functions are ambiguous until fully parsed (either through backtracking or with intermediate node types). BinaryAST exposes the node type upfront prior to parsing.
Looking to get started with BinaryAST? You’re in luck — the BinaryAST Worker can be installed on any Cloudflare website. After it’s configured, downloading the Firefox Nightly, heading to the about:config page, and enabling unrestricted BinaryAST will get things up and running.