Fix crosslang Stat, StatVFS for custom crosslang filesystems and add queryable

This commit is contained in:
2026-05-08 23:10:20 -05:00
parent 28eff630c6
commit 7008a6ae61
13 changed files with 940 additions and 36 deletions
+15 -1
View File
@@ -615,7 +615,7 @@ namespace Tesses::CrossLang
EnsureSymbol("(");
SyntaxNode list = ParseExpression();
SyntaxNode body = nullptr;
if(IsSymbol(":"))
if(IsSymbol(":") || IsIdentifier("in"))
{
item = list;
list = ParseExpression();
@@ -1406,6 +1406,20 @@ namespace Tesses::CrossLang
}
return AdvancedSyntaxNode::Create(WhileStatement,false,{cond,body});
}
if(IsIdentifier("using"))
{
EnsureSymbol("(");
SyntaxNode expr = ParseExpression();
EnsureSymbol(")");
SyntaxNode body = nullptr;
if(!IsSymbol(";"))
{
body = ParseNode();
}
return AdvancedSyntaxNode::Create(UsingStatement, false, {expr,body});
}
if(IsIdentifier("do"))
{
EnsureSymbol("(");