This commit is contained in:
nub31
2025-05-26 20:52:46 +02:00
parent c570c9ad5c
commit c4eb14b908
3 changed files with 2 additions and 5 deletions

View File

@@ -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

1
run.sh
View File

@@ -1,7 +1,6 @@
#!/bin/bash
set -e
./clean.sh
clear
./build.sh
./out/program
echo "Process exited with status code $?"

View File

@@ -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 <input-dir>");
Console.Error.WriteLine("Example: nub src");