From 10a1f7e4ad1bc90436f58269a52cddfd0587be33 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Thu, 16 Feb 2023 02:00:58 -0800 Subject: added a preprocessor with include statements except it doesn't work --- doc/pcdt_examples/boolean.pcdt | 18 ++++++++++++++++++ doc/pcdt_examples/example.pcdt | 2 ++ doc/pcdt_examples/helloworld.pcdt | 3 +++ doc/pcdt_examples/includetest.pcdt | 2 ++ 4 files changed, 25 insertions(+) create mode 100644 doc/pcdt_examples/boolean.pcdt create mode 100644 doc/pcdt_examples/example.pcdt create mode 100644 doc/pcdt_examples/helloworld.pcdt create mode 100644 doc/pcdt_examples/includetest.pcdt (limited to 'doc/pcdt_examples') diff --git a/doc/pcdt_examples/boolean.pcdt b/doc/pcdt_examples/boolean.pcdt new file mode 100644 index 0000000..e6becd6 --- /dev/null +++ b/doc/pcdt_examples/boolean.pcdt @@ -0,0 +1,18 @@ +store(14; var1;) +store(12; var2;) + +store( +eq(var1() var2()) +res;) + +print(var1()) + +if(res() +print(equals;) +) + +if(not(res()) +print(does not equal;) +) + +print(var2()) diff --git a/doc/pcdt_examples/example.pcdt b/doc/pcdt_examples/example.pcdt new file mode 100644 index 0000000..68d0a84 --- /dev/null +++ b/doc/pcdt_examples/example.pcdt @@ -0,0 +1,2 @@ +store(hello;myVar;) +print(myVar()) diff --git a/doc/pcdt_examples/helloworld.pcdt b/doc/pcdt_examples/helloworld.pcdt new file mode 100644 index 0000000..6ad1398 --- /dev/null +++ b/doc/pcdt_examples/helloworld.pcdt @@ -0,0 +1,3 @@ +store(print(hello world;) HelloWorldFunc;) +HelloWorldFunc() +HelloWorldFunc() diff --git a/doc/pcdt_examples/includetest.pcdt b/doc/pcdt_examples/includetest.pcdt new file mode 100644 index 0000000..81aa285 --- /dev/null +++ b/doc/pcdt_examples/includetest.pcdt @@ -0,0 +1,2 @@ +@helloworld.pcdt +HelloWorldFunc() -- cgit v1.3.1