From 77a49cb1b2e4c5c3953cac97407610d43d575eb3 Mon Sep 17 00:00:00 2001 From: nub31 Date: Mon, 26 May 2025 20:52:46 +0200 Subject: [PATCH] ... --- build.sh | 4 +--- run.sh | 1 - src/compiler/Nub.Lang/Program.cs | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 9f2f60b..9aaace1 100755 --- a/build.sh +++ b/build.sh @@ -5,9 +5,7 @@ mkdir -p out dotnet publish -c Release src/compiler/Nub.Lang -clear - -nub example out/out.qbe > out/out.qbe +nub example > out/out.qbe nasm -g -felf64 src/runtime/runtime.asm -o out/runtime.o diff --git a/run.sh b/run.sh index 488dcc3..ea586ab 100755 --- a/run.sh +++ b/run.sh @@ -1,7 +1,6 @@ #!/bin/bash set -e ./clean.sh -clear ./build.sh ./out/program echo "Process exited with status code $?" diff --git a/src/compiler/Nub.Lang/Program.cs b/src/compiler/Nub.Lang/Program.cs index 10e9043..1d54320 100644 --- a/src/compiler/Nub.Lang/Program.cs +++ b/src/compiler/Nub.Lang/Program.cs @@ -10,7 +10,7 @@ internal static class Program { public static int Main(string[] args) { - if (args.Length != 2) + if (args.Length != 1) { Console.Error.WriteLine("Usage: nub "); Console.Error.WriteLine("Example: nub src");