-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
050c14b
commit 9928659
Showing
277 changed files
with
12,019 additions
and
12,299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace Azoth.Tools.Bootstrap.Compiler.AST.Interpreter | ||
namespace Azoth.Tools.Bootstrap.Compiler.AST.Interpreter; | ||
|
||
public class AzothTreeInterpreter | ||
{ | ||
public class AzothTreeInterpreter | ||
[SuppressMessage("Performance", "CA1822:Mark members as static", | ||
Justification = "OO")] | ||
public InterpreterProcess Execute(Package package) | ||
{ | ||
[SuppressMessage("Performance", "CA1822:Mark members as static", | ||
Justification = "OO")] | ||
public InterpreterProcess Execute(Package package) | ||
{ | ||
if (package.EntryPoint is null) | ||
throw new ArgumentException("Cannot execute package without an entry point"); | ||
if (package.EntryPoint is null) | ||
throw new ArgumentException("Cannot execute package without an entry point"); | ||
|
||
return new InterpreterProcess(package); | ||
} | ||
return new InterpreterProcess(package); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
using System; | ||
using Azoth.Tools.Bootstrap.Compiler.AST.Interpreter.MemoryLayout; | ||
|
||
namespace Azoth.Tools.Bootstrap.Compiler.AST.Interpreter.ControlFlow | ||
namespace Azoth.Tools.Bootstrap.Compiler.AST.Interpreter.ControlFlow; | ||
|
||
internal class Break : Exception | ||
{ | ||
internal class Break : Exception | ||
{ | ||
public AzothValue Value { get; } | ||
public AzothValue Value { get; } | ||
|
||
public Break() { } | ||
public Break() { } | ||
|
||
public Break(AzothValue value) | ||
{ | ||
Value = value; | ||
} | ||
public Break(AzothValue value) | ||
{ | ||
Value = value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
using System; | ||
|
||
namespace Azoth.Tools.Bootstrap.Compiler.AST.Interpreter.ControlFlow | ||
namespace Azoth.Tools.Bootstrap.Compiler.AST.Interpreter.ControlFlow; | ||
|
||
internal class Next : Exception | ||
{ | ||
internal class Next : Exception | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
using System; | ||
using Azoth.Tools.Bootstrap.Compiler.AST.Interpreter.MemoryLayout; | ||
|
||
namespace Azoth.Tools.Bootstrap.Compiler.AST.Interpreter.ControlFlow | ||
namespace Azoth.Tools.Bootstrap.Compiler.AST.Interpreter.ControlFlow; | ||
|
||
internal class Return : Exception | ||
{ | ||
internal class Return : Exception | ||
{ | ||
public AzothValue Value { get; } | ||
public AzothValue Value { get; } | ||
|
||
public Return() | ||
{ | ||
} | ||
public Return() | ||
{ | ||
} | ||
|
||
public Return(AzothValue value) | ||
{ | ||
Value = value; | ||
} | ||
public Return(AzothValue value) | ||
{ | ||
Value = value; | ||
} | ||
} |
Oops, something went wrong.