....
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
pushd math
|
||||
|
||||
dotnet run --project ../../compiler math.nub --type=lib
|
||||
|
||||
pushd .build
|
||||
unzip out.nublib
|
||||
popd
|
||||
popd
|
||||
|
||||
pushd program
|
||||
|
||||
dotnet run --project ../../compiler main.nub ../math/.build/out.nublib
|
||||
|
||||
popd
|
||||
@@ -1,5 +1,10 @@
|
||||
module math
|
||||
|
||||
struct vec2 { x: i32 y: i32 }
|
||||
struct vec3 { x: i32 y: i32 z: i32 }
|
||||
struct color { r: i32 g: i32 b: i32 a: i32 }
|
||||
struct example { a: math::vec2 b: math::vec3 c: math::color }
|
||||
|
||||
export func add(a: i32 b: i32): i32
|
||||
{
|
||||
return a + b
|
||||
|
||||
Reference in New Issue
Block a user