added strings

This commit is contained in:
2022-10-12 11:06:58 -06:00
parent c4be846c1d
commit ce23415663
8 changed files with 73 additions and 0 deletions

View File

@@ -172,6 +172,12 @@ pub struct LiteralBool {
pub type_: TypeUsage,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct LiteralString {
pub value: Spanned<String>,
pub type_: TypeUsage,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct LiteralStruct {
pub type_parameters: GenericUsage,
@@ -227,6 +233,7 @@ pub enum Subexpression {
LiteralInt(LiteralInt),
LiteralFloat(LiteralFloat),
LiteralBool(LiteralBool),
LiteralString(LiteralString),
LiteralStruct(LiteralStruct),
FunctionCall(FunctionCall),
VariableUsage(VariableUsage),