summaryrefslogtreecommitdiffstats
path: root/code/example.txt
diff options
context:
space:
mode:
authorAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-10-25 16:55:22 +0100
committerAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-10-25 16:55:22 +0100
commit74c5732bded6695eed3aabf125a888fbdf206a40 (patch)
treea429332a21ad595c190cae80264fbaf3bf19ed13 /code/example.txt
parentcb29252f1e0d29d555fb232f39d343930fc76105 (diff)
downloadesotericFORTRAN-74c5732bded6695eed3aabf125a888fbdf206a40.tar.gz
esotericFORTRAN-74c5732bded6695eed3aabf125a888fbdf206a40.zip
Interpreter capable of handing variables
Diffstat (limited to 'code/example.txt')
-rw-r--r--code/example.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/code/example.txt b/code/example.txt
new file mode 100644
index 0000000..cf6adc8
--- /dev/null
+++ b/code/example.txt
@@ -0,0 +1,12 @@
+var :: a
+a=5
+a=a+1
+print a
+
+a=7
+a=a*2
+print a
+
+var :: b
+b = 10
+print a+b \ No newline at end of file