Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chai2010/go-ast-book
:books: 《Go语言定制指南》(原名:Go语法树入门/开源免费图书/Go语言进阶/掌握抽象语法树/Go语言AST)
https://github.com/chai2010/go-ast-book
ast bison book flex go golang goyacc lex llir llvm programming-language wa yacc
Last synced: 3 days ago
JSON representation
:books: 《Go语言定制指南》(原名:Go语法树入门/开源免费图书/Go语言进阶/掌握抽象语法树/Go语言AST)
- Host: GitHub
- URL: https://github.com/chai2010/go-ast-book
- Owner: chai2010
- Created: 2018-12-04T00:38:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T00:50:40.000Z (3 months ago)
- Last Synced: 2024-12-03T04:05:20.729Z (10 days ago)
- Topics: ast, bison, book, flex, go, golang, goyacc, lex, llir, llvm, programming-language, wa, yacc
- Language: Go
- Homepage: https://chai2010.cn/go-ast-book
- Size: 4.45 MB
- Stars: 5,386
- Watchers: 136
- Forks: 652
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-go - chai2010/go-ast-book
- my-awesome - chai2010/go-ast-book - language,wa,yacc pushed_at:2024-09 star:5.4k fork:0.7k :books: 《Go语言定制指南》(原名:Go语法树入门/开源免费图书/Go语言进阶/掌握抽象语法树/Go语言AST) (Go)
- awesome-github-star - go-ast-book
- go-awesome - Getting started with the Go syntax tree
- awesome-golang-repositories - go-ast-book
- awesome-hacking-lists - chai2010/go-ast-book - :books: 《Go语言定制指南》(原名:Go语法树入门/开源免费图书/Go语言进阶/掌握抽象语法树/Go语言AST) (Go)
- awesome-go - Go AST Book (Chinese) - A book focusing on Go `go/*` packages. Stars:`5.4K`. (E-Books / Free e-books)
README
# 《Go语言定制指南》(原名:Go语法树入门)
- *凹语言(专为 WebAssembly 设计): https://github.com/wa-lang/wa*
- *WaBook(Go语言实现的MD电子书构建工具): https://github.com/wa-lang/wabook*----
Go语法树是Go语言源文件的另一种语义等价的表现形式。而Go语言自带的`go fmt`和`go doc`等命令都是在Go语法树的基础之上分析工具。因此将Go语言程序作为输入数据,让我们语法树这个维度重新审视Go语言程序,我们将得到创建Go语言本身的技术。Go语法树由标准库的`go/ast`包定义,它是在`go/token`包定义的词法基础之上抽象的语法树结构。本书简单介绍语法树相关包的使用。如果想从头实现一个玩具Go语言可以参考[《从头实现µGo语言》](https://github.com/chai2010/ugo-compiler-book)。
![](cover.jpg)
- 作者:柴树杉,Github [@chai2010](https://github.com/chai2010),Twitter [@chaishushan](https://twitter.com/chaishushan)
- 作者:史斌,Github [@benshi001](https://github.com/benshi001)
- 作者:丁尔男,Github [@3dgen](https://github.com/3dgen)
- 主页:https://github.com/chai2010/go-ast-book
- 阅读:https://chai2010.cn/go-ast-book## 购买链接:
- 京东:https://item.jd.com/13698866.html
- 当当:https://product.dangdang.com/29388202.html
- 异步:https://www.epubit.com/bookDetails?id=UBc86f749c1eb7如果你喜欢本书,欢迎到豆瓣评论:
- https://book.douban.com/subject/35852237
# waBook 构建(纯Go语言实现)
增加了基于 Github 的 [留言功能](https://giscus.app) 构建:
- https://github.com/wa-lang/waBook
然后执行 `wabook serve` 本地打开服务,或者 `wabook build` 构建。
# 微信公众号
![](weixin-guanggu-coder.jpeg)
# 版权
版权 [柴树杉](https://github.com/chai2010)、[史斌](https://github.com/benshi001)和[丁尔男](https://github.com/3dgen),保留相关权力。此内容仅针对Github平台用户免费在线阅读。