mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-08 23:43:18 +02:00
Add snapcraft & chocolatey manifests and move code to src
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user