Init
This commit is contained in:
31
Axiom.Core/Interpreter/StackElement.cs
Normal file
31
Axiom.Core/Interpreter/StackElement.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user