User:TriMill

From Esolang
Jump to navigation Jump to search

Welcome! I don't know how you've ended up here, but maybe you would like to see some

esolangs I've made

  • Skound - pretty bland imo, 4/10
  • OEIScript - much more interesting, 7/10
  • Trep - very good but not very original, 8/10

other things I've done

off-wiki things

ways you can contact me

  • Discord: TriMill#6898

random things I'm using my userpage for

Skound interpreter (Python)

program = input('Enter program: ')
ip = 0
hashes = []
for i, c in enumerate(program):
    if c == '#':
        hashes.append(i)

acc = 0
stack = []
while True:
    if ip >= len(program):
        ip = ip % len(program)
    c = program[ip]

    if c == '+':
        acc += 1
    elif c == '-':
        acc -= 1
    elif c == '0':
        acc = 0
    elif c == '#':
        if acc > 0:
            next_ip = 0
            for i in hashes:
                if i > ip:
                    ip = i
                    break
            else:
                ip = hashes[0]
    elif c == 'V':
        stack.append(acc)
    elif c == '^':
        if len(stack) == 0:
            break
        else:
            acc = stack.pop()
    elif c == 'I':
        print()
        acc = int(input('Input: '))
    elif c == 'O':
        print(acc, end=' ')
    ip += 1