aboutsummaryrefslogtreecommitdiff
path: root/dupifs.lang
diff options
context:
space:
mode:
Diffstat (limited to 'dupifs.lang')
-rw-r--r--dupifs.lang8
1 files changed, 8 insertions, 0 deletions
diff --git a/dupifs.lang b/dupifs.lang
new file mode 100644
index 0000000..91e7ca4
--- /dev/null
+++ b/dupifs.lang
@@ -0,0 +1,8 @@
+func int main() {
+ int c := getc();
+ int i := 0;
+ if (c == 97) {i = 1;}
+ if (c == 98) {i = 2;}
+ putint(i);
+ return 0;
+}