Add generic unt/uint
This commit is contained in:
@@ -565,6 +565,8 @@ public class Parser
|
|||||||
return new NodeTypeChar(TokensFrom(startIndex));
|
return new NodeTypeChar(TokensFrom(startIndex));
|
||||||
case "bool":
|
case "bool":
|
||||||
return new NodeTypeBool(TokensFrom(startIndex));
|
return new NodeTypeBool(TokensFrom(startIndex));
|
||||||
|
case "int":
|
||||||
|
return new NodeTypeSInt(TokensFrom(startIndex), 64);
|
||||||
case "i8":
|
case "i8":
|
||||||
return new NodeTypeSInt(TokensFrom(startIndex), 8);
|
return new NodeTypeSInt(TokensFrom(startIndex), 8);
|
||||||
case "i16":
|
case "i16":
|
||||||
@@ -573,6 +575,8 @@ public class Parser
|
|||||||
return new NodeTypeSInt(TokensFrom(startIndex), 32);
|
return new NodeTypeSInt(TokensFrom(startIndex), 32);
|
||||||
case "i64":
|
case "i64":
|
||||||
return new NodeTypeSInt(TokensFrom(startIndex), 64);
|
return new NodeTypeSInt(TokensFrom(startIndex), 64);
|
||||||
|
case "uint":
|
||||||
|
return new NodeTypeUInt(TokensFrom(startIndex), 64);
|
||||||
case "u8":
|
case "u8":
|
||||||
return new NodeTypeUInt(TokensFrom(startIndex), 8);
|
return new NodeTypeUInt(TokensFrom(startIndex), 8);
|
||||||
case "u16":
|
case "u16":
|
||||||
|
|||||||
@@ -29,4 +29,4 @@ func main(): i32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user