feat: TokenFactory把bool改为boolean

This commit is contained in:
Luke 2025-06-11 17:40:07 +08:00
parent 9c5ae6762b
commit 20183be93d
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ module: Main
parameter:
return_type: int
body:
declare b1: bool
declare b1: boolean
return 0
end body

View File

@ -33,7 +33,7 @@ public class TokenFactory {
/**
* 内置类型名称集合 intstring
*/
private static final Set<String> TYPES = Set.of("int", "string", "float", "bool", "void", "double", "long", "short", "byte");
private static final Set<String> TYPES = Set.of("int", "string", "float", "boolean", "void", "double", "long", "short", "byte");
/**
* 创建一个根据内容自动推断类型的 {@link Token} 实例