Enable processing of For Loops.
This commit is contained in:
17
Axiom.Core/Interpreter/CapturedCode.cs
Normal file
17
Axiom.Core/Interpreter/CapturedCode.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace Axiom.Interpreter
|
||||
{
|
||||
public class CapturedCode
|
||||
{
|
||||
private readonly byte[] codeBytes;
|
||||
|
||||
public CapturedCode(byte[] codeBytes)
|
||||
{
|
||||
this.codeBytes = codeBytes ?? throw new ArgumentNullException(nameof(codeBytes));
|
||||
}
|
||||
public int Length => codeBytes.Length;
|
||||
|
||||
public byte[] Bytes => (byte[])codeBytes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user