issues
search
MJingv
/
jehol-person-blog
Jehol's Blog 🙋 (hexo+react)
https://mjingv.github.io/JeholBlog/
0
stars
1
forks
source link
what? AST in JS?
#26
Open
MJingv
opened
5 years ago
MJingv
commented
5 years ago
AST Abstract Syntax Tree(抽象语法树)
资料来源
AST in Modern JavaScript
生成语法树
词法分析(tokenize)
语法分析(parse)
AST in ESLint
ESLint是一个用来检查和报告JavaScript编写规范的插件化工具,通过配置规则来规范代码
AST in Babel
Babel is the new jQuery
Babel是为使用下一代JavaScript语法特性来开发而存在的编译工具
工作阶段:parse => transform => generator
AST in Webpack
Webpack是一个JavaScript生态的打包工具,其打出bundle结构是一个IIFE(立即执行函数)
AST Abstract Syntax Tree(抽象语法树)
资料来源
AST in Modern JavaScript
生成语法树
AST in ESLint
AST in Babel
AST in Webpack