From b434bac92117f41656f19eee5898f6cc6984db54 Mon Sep 17 00:00:00 2001 From: profan Date: Mon, 25 May 2026 17:35:18 +0100 Subject: [PATCH] ceremony --- Program.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Program.cs b/Program.cs index 22b85d7..a8e6fe7 100644 --- a/Program.cs +++ b/Program.cs @@ -54,9 +54,10 @@ void CreateOutputImage(int imageSize, float[] imageData, string imageOutputPath) } enum OpCode { VarX, VarY, Const, Add, Sub, Mul, Max, Min, Neg, Square, Sqrt } -readonly record struct Instruction(int Out, OpCode OpCode, int A = -1, int B = -1, float V = float.MaxValue); -static class Parsing +internal readonly record struct Instruction(int Out, OpCode OpCode, int A = -1, int B = -1, float V = float.MaxValue); + +internal static class Parsing { // 1D <-> 2D coordinate helpers for square grids @@ -99,7 +100,7 @@ static class Parsing } -static class Compiler +internal static class Compiler { static (AssemblyBuilder, MethodBuilder, TypeBuilder) CreateDynamicAssemblyWithMethodBuilder(string assemblyName, string moduleName, string typeName, string methodName) @@ -139,7 +140,7 @@ static class Compiler } } -static class Interpreter +internal static class Interpreter { public static float[] Evaluate(Instruction[] instructions, int imageSize) {