summaryrefslogtreecommitdiff
path: root/old-examples/numerals/BinaryDigits.gf
diff options
context:
space:
mode:
Diffstat (limited to 'old-examples/numerals/BinaryDigits.gf')
-rw-r--r--old-examples/numerals/BinaryDigits.gf11
1 files changed, 11 insertions, 0 deletions
diff --git a/old-examples/numerals/BinaryDigits.gf b/old-examples/numerals/BinaryDigits.gf
new file mode 100644
index 000000000..3a30a993c
--- /dev/null
+++ b/old-examples/numerals/BinaryDigits.gf
@@ -0,0 +1,11 @@
+concrete BinaryDigits of Binary = {
+
+flags startcat=Bin ;
+
+lincat Bin = { s : Str } ;
+
+lin End = { s = "" } ;
+lin Zero b = { s = "0" ++ b.s } ;
+lin One b = { s = "1" ++ b.s } ;
+
+} \ No newline at end of file