> For the complete documentation index, see [llms.txt](https://gocompiler.shizhz.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gocompiler.shizhz.me/3.-golang-bian-yi-qi-yu-fa-fen-xi/3.1-jian-jie.md).

# 3B.1 简介

Go 采用了递归下降的解析方式进行语法分析，并构建出抽象语法树（Abstract Syntax Tree, AST），解析器以文件为单位进行分析，如果该文件内没有语法错误，则解析器会生成一颗 AST, 该 AST 是后续类型检查的基础。
