This commit is contained in:
2024-02-22 15:13:49 -05:00
commit 320bbfa7ac
38 changed files with 7312 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
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; }
}
}