diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-04-07 13:05:08 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-04-07 13:05:08 -0400 |
commit | 6d25f97d1035a775d6eb9f135f8e8231521087af (patch) | |
tree | 21c3488541f4a65a16245792c6055f3d886b8fbb /examples | |
parent | da6f4e15ad2fa3edd59108913065c883aee897ed (diff) |
[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
Diffstat (limited to 'examples')
-rw-r--r-- | examples/README.md | 10 | ||||
-rw-r--r-- | examples/basic.tnsl | 3 |
2 files changed, 13 insertions, 0 deletions
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 <path to file> [-flags <args for the program>]
\ 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 +;/ |