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");