The parser is responsible for both producing the AST and inserting symbols into the symbol table at the moment. By separating the parsing and binding process, we can eliminate side effects of parsers and run parsers for different files concurrently using web workers (on browser) / worker threads (on Node.js).
The parser is responsible for both producing the AST and inserting symbols into the symbol table at the moment. By separating the parsing and binding process, we can eliminate side effects of parsers and run parsers for different files concurrently using web workers (on browser) / worker threads (on Node.js).
Potential libraries we could use: