From 51659aa7b33baa490a614255996f3e372e86a67c Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Sat, 18 Feb 2023 23:27:30 -0800 Subject: fixed eval() scoping --- examples/helloworld1.pcdt | 1 - examples/helloworld2.pcdt | 2 -- examples/recursion.pcdt | 2 +- examples/scopetest.pcdt | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 examples/helloworld1.pcdt delete mode 100644 examples/helloworld2.pcdt (limited to 'examples') diff --git a/examples/helloworld1.pcdt b/examples/helloworld1.pcdt deleted file mode 100644 index a52e207..0000000 --- a/examples/helloworld1.pcdt +++ /dev/null @@ -1 +0,0 @@ -store(hello world; hlVar;) diff --git a/examples/helloworld2.pcdt b/examples/helloworld2.pcdt deleted file mode 100644 index 084ce45..0000000 --- a/examples/helloworld2.pcdt +++ /dev/null @@ -1,2 +0,0 @@ -@helloworld1.pcdt -store(print(hlVar()) HelloWorldFunc;) diff --git a/examples/recursion.pcdt b/examples/recursion.pcdt index 88b81f5..3f57a6e 100644 --- a/examples/recursion.pcdt +++ b/examples/recursion.pcdt @@ -1,2 +1,2 @@ -store( (print(arg0()) incFunc(sum(1; arg0())) ) incFunc;) +store( ref((print(arg0()) incFunc(sum(1; arg0())))) incFunc;) incFunc(0;) diff --git a/examples/scopetest.pcdt b/examples/scopetest.pcdt index 2aeb6ad..78418e2 100644 --- a/examples/scopetest.pcdt +++ b/examples/scopetest.pcdt @@ -1,2 +1,2 @@ -store(ref(print(hello;)) myFunc;) +store(ref(ref(print(hello;))) myFunc;) eval(myFunc()) -- cgit v1.3.1