Categorygithub.com/chai2010/go-ast-book
module
0.0.0-20240926005033-6bb3a6f0f776
Repository: https://github.com/chai2010/go-ast-book.git
Documentation: pkg.go.dev

# README

《Go语言定制指南》(原名:Go语法树入门)


Go语法树是Go语言源文件的另一种语义等价的表现形式。而Go语言自带的go fmtgo doc等命令都是在Go语法树的基础之上分析工具。因此将Go语言程序作为输入数据,让我们语法树这个维度重新审视Go语言程序,我们将得到创建Go语言本身的技术。Go语法树由标准库的go/ast包定义,它是在go/token包定义的词法基础之上抽象的语法树结构。本书简单介绍语法树相关包的使用。如果想从头实现一个玩具Go语言可以参考《从头实现µGo语言》

购买链接:

如果你喜欢本书,欢迎到豆瓣评论:

waBook 构建(纯Go语言实现)

增加了基于 Github 的 留言功能 构建:

然后执行 wabook serve 本地打开服务,或者 wabook build 构建。

微信公众号

版权

版权 柴树杉史斌丁尔男,保留相关权力。此内容仅针对Github平台用户免费在线阅读。

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author