Right here’s how:
- A category of mistakes referred to as “early mistakes” is administered towards the supply to test for errors like reserved phrases in invalid contexts, strict mode violations, and variable identify clashes ahead of operating the real parser. BinaryAST can spot those mistakes forward of time, ahead of runtime.
- Parsing low-level sorts, like numbers from textual content, calls for further computation, and a few purposes are ambiguous till absolutely parsed (both thru backtracking or with intermediate node sorts). BinaryAST exposes the node kind in advance previous to parsing.
Taking a look to get began with BinaryAST? You’re in good fortune — the BinaryAST Employee can also be put in on any Cloudflare site. After it’s configured, downloading the Firefox Nightly, heading to the about:config web page, and enabling unrestricted BinaryAST gets issues up and operating.