THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

Initial commit

Signed-off-by: MegaXLR <weijgsvgjsrogigjeciorscjgioecsjrgoic@megaxlr.net>
master
MegaXLR 1 month ago
commit
c1596ecb1b
No account linked to committer's email address
2 changed files with 64 additions and 0 deletions
  1. 40
    0
      README.txt
  2. 24
    0
      e.go

+ 40
- 0
README.txt View File

@@ -0,0 +1,40 @@
1
+The e Programming Language
2
+
3
+This esoteric language was made to support this ironical git repository that waas hosted on github.com
4
+https://github.com/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
5
+
6
+Usage: 
7
+
8
+     $ ./the-e-programming-language <source>
9
+
10
+
11
+(Does not accept piped source code)
12
+
13
+
14
+Syntax: 
15
+
16
+
17
+
18
+This language has two commands "e" and " ", and uses a single integer as memory.
19
+
20
+ - the "e" command:
21
+   increment memory by 1.
22
+ - the " " command:
23
+   print the ASCII value of the integer on the screen.
24
+
25
+
26
+
27
+Examples: 
28
+
29
+  Print the entire latin alphabet (in uppercase)
30
+
31
+     $ ./the-e-programming-language eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee  e e e e e e e e e e e e e e e e e e e e e e e e e
32
+
33
+  Print the entire latin alphabete (in lowercase) 
34
+
35
+     $ ./the-e-programming-language eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee e e e e e e e e e e e e e e e e e e e e e e e e e
36
+
37
+  Print the numbers (0...9)
38
+
39
+     $ ./the-e-programming-language eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee e e e e e e e e e 
40
+

+ 24
- 0
e.go View File

@@ -0,0 +1,24 @@
1
+package main
2
+
3
+import (
4
+	"fmt"
5
+	"os"
6
+	"strings"
7
+	"bytes"
8
+)
9
+
10
+func main() {
11
+	var j = 0
12
+	var buffer bytes.Buffer
13
+	var k = strings.Join(os.Args[1:], " ")
14
+	for _,i := range strings.Split(k, "") {
15
+		if i == "e" {
16
+			j=j+1%127
17
+		} else if i == " " {
18
+			buffer.WriteString(fmt.Sprintf("%c", j))
19
+		}
20
+	}
21
+	
22
+	buffer.WriteString(fmt.Sprintf("%c", j))
23
+	fmt.Println(buffer.String())
24
+}

Loading…
Cancel
Save