Files
ARM64/Axiom/Axiom.Core/Interpreter/StackElement.cs
2025-03-25 21:38:29 -04:00

32 lines
620 B
C#
Executable File

using System.Collections.Generic;
// FileName : StackElement.cs
// Author : Sean Kessler
namespace Axiom.Interpreter
{
public class CodeStack
{
private Stack<StackElement> codeStack = new Stack<StackElement>();
public CodeStack()
{
}
public void Push(StackElement stackElement)
{
codeStack.Push(stackElement);
}
public StackElement Pop()
{
return codeStack.Pop();
}
}
public class StackElement
{
public StackElement()
{
}
public GenericData Value { get; set; }
public Symbol Symbol { get; set; }
}
}