From dd995a8ee2a11913cf2791faa2eedaeaeece9494 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Thu, 16 Aug 2012 11:34:11 +0200 Subject: [PATCH] test for constants --- data/consts.qc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 data/consts.qc diff --git a/data/consts.qc b/data/consts.qc new file mode 100644 index 0000000..ccfeca6 --- /dev/null +++ b/data/consts.qc @@ -0,0 +1,15 @@ +/* this is the WIP test for the parser... + * constantly adding stuff here to see if things break + */ +void(string) print = #1; +void(string,string) print2 = #1; +void(string,string,string) print3 = #1; +string(float) ftos = #2; + +float CONST_1 = 1; +float CONST_2 = CONST_1 + 1; + +void() main = { + print3("CONST_1 = ", ftos(CONST_1), "\n"); + print3("CONST_2 = ", ftos(CONST_2), "\n"); +}; -- 2.39.2