summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/README.md10
-rw-r--r--examples/basic.tnsl3
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
+;/