mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-04 23:43:21 +02:00
18 lines
497 B
C#
18 lines
497 B
C#
using System.Collections.Generic;
|
|
|
|
namespace YesNt.Interpreter.Runtime
|
|
{
|
|
internal class FunctionScope
|
|
{
|
|
public int CallerLine { get; }
|
|
public Dictionary<string, string> Variables { get; } = new();
|
|
public Stack<string> Arguemtns { get; }
|
|
public Stack<string> Results { get; } = new();
|
|
|
|
public FunctionScope(int callerLine, Stack<string> arguemtns)
|
|
{
|
|
CallerLine = callerLine;
|
|
Arguemtns = arguemtns;
|
|
}
|
|
}
|
|
} |