...
This commit is contained in:
4
build.sh
4
build.sh
@@ -5,9 +5,7 @@ mkdir -p out
|
|||||||
|
|
||||||
dotnet publish -c Release src/compiler/Nub.Lang
|
dotnet publish -c Release src/compiler/Nub.Lang
|
||||||
|
|
||||||
clear
|
nub example > out/out.qbe
|
||||||
|
|
||||||
nub example out/out.qbe > out/out.qbe
|
|
||||||
|
|
||||||
nasm -g -felf64 src/runtime/runtime.asm -o out/runtime.o
|
nasm -g -felf64 src/runtime/runtime.asm -o out/runtime.o
|
||||||
|
|
||||||
|
|||||||
1
run.sh
1
run.sh
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
./clean.sh
|
./clean.sh
|
||||||
clear
|
|
||||||
./build.sh
|
./build.sh
|
||||||
./out/program
|
./out/program
|
||||||
echo "Process exited with status code $?"
|
echo "Process exited with status code $?"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ internal static class Program
|
|||||||
{
|
{
|
||||||
public static int Main(string[] args)
|
public static int Main(string[] args)
|
||||||
{
|
{
|
||||||
if (args.Length != 2)
|
if (args.Length != 1)
|
||||||
{
|
{
|
||||||
Console.Error.WriteLine("Usage: nub <input-dir>");
|
Console.Error.WriteLine("Usage: nub <input-dir>");
|
||||||
Console.Error.WriteLine("Example: nub src");
|
Console.Error.WriteLine("Example: nub src");
|
||||||
|
|||||||
Reference in New Issue
Block a user