diff --git a/docs/project-syntax-example/common.zrl b/docs/project-syntax-example/common.zrl index 92a7a9e..f170471 100644 --- a/docs/project-syntax-example/common.zrl +++ b/docs/project-syntax-example/common.zrl @@ -1,11 +1,11 @@ -!! +! ! Note that these look like classes but act like structs ! the methods actually have a implied struct as their first argument -!! +! -!! +! ! Camera . -!! +! type Camera { init(real[3] pos, real[3] look) { this.setting = "CAMERA_PERSPECTIVE"; @@ -16,9 +16,9 @@ type Camera { } } -!! +! ! Player . -!! +! type Player { init(str username, real[3] pos, Color color) { this.server = Client("tcp://localhost:25565"); diff --git a/test/add.zre b/test/add.zrl similarity index 100% rename from test/add.zre rename to test/add.zrl diff --git a/test/fib.zre b/test/fib.zrl similarity index 100% rename from test/fib.zre rename to test/fib.zrl diff --git a/test/loop.zre b/test/loop.zrl similarity index 100% rename from test/loop.zre rename to test/loop.zrl diff --git a/test/simple.zre b/test/simple.zrl similarity index 100% rename from test/simple.zre rename to test/simple.zrl