mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-04 09:06:41 +02:00
12 lines
426 B
C#
12 lines
426 B
C#
using System.Collections.Generic;
|
|
|
|
namespace YesNt.Interpreter.Runtime;
|
|
|
|
internal class FunctionScope(int callerLine, Stack<string> arguments)
|
|
{
|
|
public int CallerLine { get; } = callerLine;
|
|
public Dictionary<string, string> Variables { get; } = [];
|
|
public Dictionary<string, int> Labels { get; } = [];
|
|
public Stack<string> Arguments { get; } = arguments;
|
|
public Stack<string> Results { get; } = new();
|
|
} |