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 10 months ago
commit
c1596ecb1b
Signed by: megaxlr <admin@megaxlr.net> GPG Key ID: 5A3700B6CE480DD9
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 @@
The e Programming Language

This esoteric language was made to support this ironical git repository that waas hosted on github.com
https://github.com/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Usage:

$ ./the-e-programming-language <source>


(Does not accept piped source code)


Syntax:



This language has two commands "e" and " ", and uses a single integer as memory.

- the "e" command:
increment memory by 1.
- the " " command:
print the ASCII value of the integer on the screen.



Examples:

Print the entire latin alphabet (in uppercase)

$ ./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

Print the entire latin alphabete (in lowercase)

$ ./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

Print the numbers (0...9)

$ ./the-e-programming-language eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee e e e e e e e e e


+ 24
- 0
e.go View File

@@ -0,0 +1,24 @@
package main

import (
"fmt"
"os"
"strings"
"bytes"
)

func main() {
var j = 0
var buffer bytes.Buffer
var k = strings.Join(os.Args[1:], " ")
for _,i := range strings.Split(k, "") {
if i == "e" {
j=j+1%127
} else if i == " " {
buffer.WriteString(fmt.Sprintf("%c", j))
}
}
buffer.WriteString(fmt.Sprintf("%c", j))
fmt.Println(buffer.String())
}

Loading…
Cancel
Save