Skip to content

Commit 83f9b5a

Browse files
committed
update
1 parent 468ac43 commit 83f9b5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compilers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@ type File struct {
10541054
再结合之前输出的 [`AST`](#ast_output), 我们可以看到在生成的过程中, 大部分的 `identifiers token` 是能够确认对应类型的, 例如函数声明之类的, 那么对应函数名的 `token` 就可以被成功解析为对应类型的语法树中的一个节点
10551055
10561056
但是依旧存在一些在`AST`初步生成阶段无法被成功解析的, 那么会被存放在`Unresolved`字段中, 就比如上面输出的`int`, 那么这时候就通过向上从父级中依次查找, 如果最终能够找到对应定义, 那么检查成功, 否则则抛出未定义异常
1057+
10571058
例:
10581059
```go
10591060
package main

0 commit comments

Comments
 (0)