From 6d25f97d1035a775d6eb9f135f8e8231521087af Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 7 Apr 2022 13:05:08 -0400 Subject: [EXEC] Some fixes + Fix recursion error when converting arrays + Add conversion from bool to num + Fix conversion from num to bool + Flush out evalParams ~ Change type parsing for block returns --- examples/README.md | 10 ++++++++++ examples/basic.tnsl | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 examples/README.md create mode 100644 examples/basic.tnsl (limited to 'examples') diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..7607012 --- /dev/null +++ b/examples/README.md @@ -0,0 +1,10 @@ +# Example tnsl programs + +These are working example programs that have been verified to work with the currnet version of the interpreter. The language is not garunteed to stay constant between the interpreter and the compiled version later down the line (This is all still pre-alpha software). + +Current examples: +- basic.tnsl: Simply returns zero + +Running examples: + + ./tint -in [-flags ] \ No newline at end of file diff --git a/examples/basic.tnsl b/examples/basic.tnsl new file mode 100644 index 0000000..71d784d --- /dev/null +++ b/examples/basic.tnsl @@ -0,0 +1,3 @@ +/; main [int] + ;return 0 +;/ -- cgit v1.2.3