remove const

This commit is contained in:
Yaossg 2024-12-07 12:24:00 +08:00
parent 2d7c2371e4
commit 98d5a1a3bc
8 changed files with 53 additions and 116 deletions

View file

@ -96,11 +96,7 @@ $ sh boot.sh
### 关键字
本语言包含的关键字即为支持的标量类型的关键字和流程控制的关键字,还有 `const``extern``enum`
#### `const` 关键字
`const` 关键字可以在类型中使用,会被直接忽略。支持它是为了更好兼容 C 程序。
本语言包含的关键字即为支持的标量类型的关键字和流程控制的关键字,还有 `extern``enum`
#### `extern` 关键字
@ -162,7 +158,7 @@ $ sh boot.sh
编译过程中涉及的以下参数:
- 符号表总长度、字符串表总长度
- 符号数、字符串数、局部变量数、虚拟寄存器数
- 符号数、字符串数、局部变量数、虚拟寄存器数
不能超过源代码中指定的常数。