mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-09 16:06:08 +02:00
Code cleanup
This commit is contained in:
@@ -279,4 +279,4 @@ internal class CodeFlowStatements : StatementRuntimeInformation
|
||||
{
|
||||
return RuntimeInfo.BlockBoundaries.TryGetValue(currentLine, out int cached) ? cached : -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -63,4 +63,4 @@ internal class ConsoleStatements : StatementRuntimeInformation
|
||||
{
|
||||
Console.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -173,4 +173,4 @@ internal class FunctionStatements : StatementRuntimeInformation
|
||||
{
|
||||
RuntimeInfo.FunctionCallStack.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -271,4 +271,4 @@ internal class ListStatements : StatementRuntimeInformation
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using YesNt.Interpreter.Attributes;
|
||||
using YesNt.Interpreter.Enums;
|
||||
@@ -47,4 +46,4 @@ internal class PredefinedVariableStatements : StatementRuntimeInformation
|
||||
{
|
||||
RuntimeInfo.CurrentLine = TemplateProcessor.ProcessDynamicPlaceholders(args, "%rand", () => random.Next(32767, int.MaxValue).ToString()).TrimEnd();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -103,4 +103,4 @@ internal partial class ProcessingStatements : StatementRuntimeInformation
|
||||
|
||||
[GeneratedRegex("[0-9*+().,^%/-]+[0-9*+ ().,^%/-]+[0-9*+().,^%/-]+")]
|
||||
private static partial Regex CalculationRegex();
|
||||
}
|
||||
}
|
||||
@@ -79,4 +79,4 @@ internal class StringLiteralStatements : StatementRuntimeInformation
|
||||
_ => escapeChar
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -116,4 +116,4 @@ internal class SystemStatements : StatementRuntimeInformation
|
||||
RuntimeInfo.OutParametersStack = new(outputStack);
|
||||
RuntimeInfo.OutParametersStack.Push(process.ExitCode.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using YesNt.Interpreter.Attributes;
|
||||
@@ -65,4 +64,4 @@ internal partial class VariableStatements : StatementRuntimeInformation
|
||||
{
|
||||
RuntimeInfo.CurrentLine = TemplateProcessor.ProcessVariables(RuntimeInfo.CurrentLine, RuntimeInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user