]> git.mdlowis.com Git - proto/sclpl.git/commitdiff
Added example source and tokens file
authorMike D. Lowis <mike@mdlowis.com>
Fri, 15 Mar 2013 16:37:11 +0000 (12:37 -0400)
committerMike D. Lowis <mike@mdlowis.com>
Fri, 15 Mar 2013 16:37:11 +0000 (12:37 -0400)
docs/example.sl [new file with mode: 0644]
docs/example.tokens [new file with mode: 0644]

diff --git a/docs/example.sl b/docs/example.sl
new file mode 100644 (file)
index 0000000..12389e4
--- /dev/null
@@ -0,0 +1,4 @@
+if {1 == 1}
+    print("Foo")
+end
+
diff --git a/docs/example.tokens b/docs/example.tokens
new file mode 100644 (file)
index 0000000..46b0235
--- /dev/null
@@ -0,0 +1,12 @@
+@file docs/example.sl
+ID     1       1       if
+LBRACE 1       4       {
+NUM    1       5       1
+ID     1       7       ==
+NUM    1       10      1
+RBRACE 1       11      }
+ID     2       5       print
+LPAREN 2       10      (
+ID     2       11      "Foo"
+RPAREN 2       16      )
+TERM   3       1       end