Static path expr

This commit is contained in:
2026-05-04 16:49:41 +02:00
parent eba3599520
commit c4bdc20276
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ impl From<pest::iterators::Pair<'_, Rule>> for Expression {
}
}
Rule::primary => Expression::from(pair.into_inner().next().unwrap()),
Rule::identifier => Expression::Identifier(pair.as_str().to_string()),
Rule::static_path => Expression::Path(StaticPath::from(pair)),
Rule::integer => {
let value = pair.as_str().parse::<i64>().unwrap();
Expression::IntLiteral(value)