# 2.2 代码结构

Go 编译器中与词法分析相关的代码位置如下：

* package 位置: $GCROOT/compile/internal/syntax
* source.go: 字符扫描&#x20;
* scanner.go: 词法分析器
* tokens.go: 各种类型的 token 声明
* tokens\_string.go: token 类型的 String 函数
* operator\_string.go: 操作符好的 String 函数


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gocompiler.shizhz.me/2.-golang-bian-yi-qi-ci-fa-fen-xi/2.2-dai-ma-jie-gou.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
