# chai2010/go-ast-book

:books: 《Go语言定制指南》(原名：Go语法树入门/开源免费图书/Go语言进阶/掌握抽象语法树/Go语言AST)

Repository: https://github.com/chai2010/go-ast-book
Canonical: https://ross.abutalabs.com/products/go-ast-book
Homepage: https://chai2010.cn/go-ast-book
Language: Go
License Family: other
Topics: go, golang, ast, book, yacc, goyacc, bison, flex, lex, llvm, llir, wa, programming-language
Last push: 2024-09-26T00:50:40+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2830, "days_push": 707, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5508, forks 654 (observed 2026-08-28T04:09:21.779633+00:00)

## What it is
A free open-source Chinese-language book (《Go语言定制指南》, formerly Go语法树入门) teaching Go's abstract syntax tree via the go/ast and go/token packages, plus parser tools like goyacc. It is a learning resource for building Go language tooling and toy compilers.

## Use cases
- learn go/ast to parse Go source code
- build custom Go code analysis tools
- write a toy compiler for a Go-like language
- understand how go fmt and go doc work internally
- learn goyacc and parser generation
- customize the Go language via syntax trees

## When to choose
- you want a free, structured introduction to Go's AST packages
- you are building Go linters, formatters, or code generators
- you want to learn compiler basics with Go as the target language

## When to avoid
- you need a ready-made tool or library rather than a book
- you need content in English
- you want a general Go language tutorial rather than AST/compiler topics

## Facets
- artifact type: learning-resource
- maturity: active
- function: parser, compiler, documentation, programming-language
- domain: tutorials, programming-languages, parsers, compilers, developer-tools
- platform: go, cross-platform
- tags: go-ast, syntax-tree, goyacc, llvm, free-book, chinese

## Member repositories
- chai2010/go-ast-book (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:21.779633+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:56:16.098764+00:00, confidence not recorded.
  - readme: https://github.com/chai2010/go-ast-book (fetched 2026-08-28T04:09:21.779633+00:00, sha 082d01ddaef3)
  - homepage: https://chai2010.cn/go-ast-book (fetched 2026-08-29T08:51:17.901953+00:00, sha 6125d4396f97)
- Data as of 2026-08-30T08:39:29.467469+00:00.
