https://github.com/suhanyujie/hello_parser_of_js
learn lexer/parser
https://github.com/suhanyujie/hello_parser_of_js
lexer parser
Last synced: 9 months ago
JSON representation
learn lexer/parser
- Host: GitHub
- URL: https://github.com/suhanyujie/hello_parser_of_js
- Owner: suhanyujie
- License: apache-2.0
- Created: 2019-08-22T10:20:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T10:13:09.000Z (almost 7 years ago)
- Last Synced: 2025-02-25T09:17:56.946Z (over 1 year ago)
- Topics: lexer, parser
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 解析器
* 先按照[文档](https://hsiaosiyuan0.gitbook.io/icj)敲一遍,对整个解析过程:词法分析,语法分析,语义分析 有个大概的了解
## requirements
* node v12.9.0
## dev
* 项目根目录下 `node src/entry.js`
## 其他
### 运算符优先级
* JavaScript 中,运算符 `**` 的优先级比 `*`、`/` 高,[参考这里](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)
* 普通的 `+/-/*//` 是左结合性的,而 `**` 是右结合性的。
## 参考资料
* https://hsiaosiyuan0.gitbook.io/icj
* nodejs 调试 https://www.cnblogs.com/knightreturn/p/6480637.html