Рет қаралды 1,758
in this tutorial chris breaks down how parsing, tokenizing and abstract syntax trees (AST's) work in JavaScript and TypeScript. Chris breaks down how tokenenization works using tools such as espree, acorn and typescript. We also look at what an abstract syntax tree works and how it's used in code formatting tools such as prettier or linting tools such as eslint. Chris shows how you code gen with ast's using escodegen or recast and talks about how code is generated using babel or the typescript compiler. chris also takes a look ahead on why AST's will be important in the future of AI and LLM's. you never know, might even learn some computer science.
github repo
------
github.com/chrishayuk/typescr...