Add list statement support with tests for creation, access, and errors

This commit is contained in:
Stone_Red
2026-03-04 15:47:54 +01:00
parent 344e9e644e
commit e99df1e3f2
6 changed files with 455 additions and 3 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ internal class FunctionScope(int callerLine, Stack<string> arguments)
{
public int CallerLine { get; } = callerLine;
public Dictionary<string, string> Variables { get; } = [];
public Dictionary<string, List<string>> Lists { get; } = [];
public Dictionary<string, int> Labels { get; } = [];
public Stack<string> Arguments { get; } = arguments;
public Stack<string> Results { get; } = new();
}
}