summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2023-02-16 17:11:38 -0800
committerKai Stevenson <kai@kaistevenson.com>2023-02-16 17:11:38 -0800
commit7410d984ae270528ea4f3f16d3473acf807ef92c (patch)
treeb98ceaab29da9d791392007ad1c8e99d82e7210a /examples
parenta2063489b84cbc47bd51aee761b3c5dd35e0195f (diff)
preprocessor works now, added some helper methods and a few more frees
Diffstat (limited to 'examples')
-rw-r--r--examples/boolean.pcdt2
-rw-r--r--examples/example.pcdt2
-rw-r--r--examples/helloworld.pcdt3
-rw-r--r--examples/helloworld1.pcdt1
-rw-r--r--examples/helloworld2.pcdt2
-rw-r--r--examples/includetest.pcdt2
6 files changed, 5 insertions, 7 deletions
diff --git a/examples/boolean.pcdt b/examples/boolean.pcdt
index e6becd6..c77f152 100644
--- a/examples/boolean.pcdt
+++ b/examples/boolean.pcdt
@@ -1,5 +1,5 @@
store(14; var1;)
-store(12; var2;)
+store(14; var2;)
store(
eq(var1() var2())
diff --git a/examples/example.pcdt b/examples/example.pcdt
deleted file mode 100644
index 68d0a84..0000000
--- a/examples/example.pcdt
+++ /dev/null
@@ -1,2 +0,0 @@
-store(hello;myVar;)
-print(myVar())
diff --git a/examples/helloworld.pcdt b/examples/helloworld.pcdt
deleted file mode 100644
index 6ad1398..0000000
--- a/examples/helloworld.pcdt
+++ /dev/null
@@ -1,3 +0,0 @@
-store(print(hello world;) HelloWorldFunc;)
-HelloWorldFunc()
-HelloWorldFunc()
diff --git a/examples/helloworld1.pcdt b/examples/helloworld1.pcdt
new file mode 100644
index 0000000..a52e207
--- /dev/null
+++ b/examples/helloworld1.pcdt
@@ -0,0 +1 @@
+store(hello world; hlVar;)
diff --git a/examples/helloworld2.pcdt b/examples/helloworld2.pcdt
new file mode 100644
index 0000000..084ce45
--- /dev/null
+++ b/examples/helloworld2.pcdt
@@ -0,0 +1,2 @@
+@helloworld1.pcdt
+store(print(hlVar()) HelloWorldFunc;)
diff --git a/examples/includetest.pcdt b/examples/includetest.pcdt
index 81aa285..a9a964b 100644
--- a/examples/includetest.pcdt
+++ b/examples/includetest.pcdt
@@ -1,2 +1,2 @@
-@helloworld.pcdt
+@helloworld2.pcdt
HelloWorldFunc()