feat: TokenFactory把bool改为boolean
This commit is contained in:
parent
9c5ae6762b
commit
20183be93d
@ -3,7 +3,7 @@ module: Main
|
|||||||
parameter:
|
parameter:
|
||||||
return_type: int
|
return_type: int
|
||||||
body:
|
body:
|
||||||
declare b1: bool
|
declare b1: boolean
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
end body
|
end body
|
||||||
|
|||||||
@ -33,7 +33,7 @@ public class TokenFactory {
|
|||||||
/**
|
/**
|
||||||
* 内置类型名称集合,如 int、string 等。
|
* 内置类型名称集合,如 int、string 等。
|
||||||
*/
|
*/
|
||||||
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} 实例。
|
* 创建一个根据内容自动推断类型的 {@link Token} 实例。
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user