diff --git a/examples/build.sh b/examples/build.sh index 7ca9090..ca6d3b1 100755 --- a/examples/build.sh +++ b/examples/build.sh @@ -4,12 +4,8 @@ pushd core dotnet run --project ../../compiler mem.nub print.nub --type=lib popd -pushd math -dotnet run --project ../../compiler math.nub --type=lib -popd - pushd program -dotnet run --project ../../compiler main.nub ../math/.build/out.nublib ../core/.build/out.nublib +dotnet run --project ../../compiler main.nub ../core/.build/out.nublib popd ./program/.build/out \ No newline at end of file diff --git a/examples/math/math.nub b/examples/math/math.nub deleted file mode 100644 index e7e2daf..0000000 --- a/examples/math/math.nub +++ /dev/null @@ -1,44 +0,0 @@ -module math - -export struct Human { - name: string - age: i32 -} - -export struct Pos { - x: i32 - y: i32 -} - -export enum Message { - Quit: {} - Move: Pos -} - -let x: i32 - -export func add(a: i32 b: i32): i32 -{ - let x = "test" - - let msg: Message = enum Message::Move { - x = 10 - y = 10 - } - - match msg { - Quit q { - // quit - } - Move m { - // move - } - } - - return add_internal(a b) -} - -func add_internal(a: i32 b: i32): i32 -{ - return a + b -} \ No newline at end of file