Add snapcraft & chocolatey manifests and move code to src

This commit is contained in:
Stone_Red
2026-03-06 00:51:31 +01:00
parent 5efd698772
commit 2a03352169
64 changed files with 302 additions and 5 deletions
+28
View File
@@ -0,0 +1,28 @@
namespace YesNt.Interpreter.Enums;
/// <summary>
/// Controls the execution order of statements. Lower values run first.
/// </summary>
public enum Priority
{
/// <summary>Runs before all other statements. Used for syntax pre-processing such as string literals.</summary>
PreProcessing,
/// <summary>Runs very early. Used for inline substitutions such as variable reads and parameter pops.</summary>
Highest,
/// <summary>Runs early.</summary>
VeryHigh,
/// <summary>Runs above normal order.</summary>
High,
/// <summary>Default execution order.</summary>
Normal,
/// <summary>Runs below normal order.</summary>
Low,
/// <summary>Runs last. Used for control-flow and variable definitions that depend on substitutions being complete.</summary>
VeryLow
}
+19
View File
@@ -0,0 +1,19 @@
namespace YesNt.Interpreter.Enums;
/// <summary>
/// Determines where in a source line the interpreter searches for a statement keyword.
/// </summary>
public enum SearchMode
{
/// <summary>The keyword must appear at the beginning of the line.</summary>
StartOfLine,
/// <summary>The keyword must appear at the end of the line.</summary>
EndOfLine,
/// <summary>The keyword may appear anywhere in the line.</summary>
Contains,
/// <summary>The entire line must exactly match the keyword.</summary>
Exact
}
@@ -0,0 +1,19 @@
namespace YesNt.Interpreter.Enums;
/// <summary>
/// Specifies which sides of a statement keyword must be surrounded by a space when matching.
/// </summary>
public enum SpaceAround
{
/// <summary>A space is required both before and after the keyword.</summary>
StartEnd,
/// <summary>A space is required before the keyword only.</summary>
Start,
/// <summary>A space is required after the keyword only.</summary>
End,
/// <summary>No surrounding spaces are required.</summary>
None
}