Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
S0u3.py

README.md

Welcome to my programming language!

This is intended to be anti-golfing, so I'm suprised if you can make an winning answer on PPCG with this.

Also, every program needs to end in a newline (most of the time)

Usage:

S0u3.py file.s0u3 [optional stdin]

Syntax:

All programs should start with THIS IS AN ANTI-GOLFING LANGUAGE and a new line.

List of commands:

  1. Get all of STDIN, and put it in the stack (but don't seperate it by newlines)

Gets all of STDIN, and put it in the stack.

What it means by don't seperate by newlinesis for example if my STDIN was:

a

b

c

d

And it WAS seperated by newlines then the stack would be:

["a", "b", "c", "d"]

If it WASN'T seperated by newlines then the stack would be:

["a\nb\nc\nd"]

  1. Get all of STDIN, and put it in the stack, and seperate it by newlines

Same as above, except it DOES seperate STDIN by newlines.

  1. Read the following characters of STDIN, and put it in the stack:

The same as Python 3:; sys.stdin.read(n) where n is the number given after that.

In case you don't know Python, it reads the first n characters of STDIN. For example:

In here, assume STDIN is abcd.

If you did Read the following characters of STDIN, and put it in the stack: 1, then the stack would be ['a']

If you did Read the following characters of STDIN, and put it in the stack: 2, then the stack would be ['ab']

If you did Read the following characters of STDIN, and put it in the stack: 3, then the stack would be ['abc']

And the rest is self-explanatory.

  1. Output the top of the stack

The same as Python 3 print(stack[:-1]). Prints the most recently appended element to the stack.

  1. Output the following elements of the stack (starting from the top):

The same as Python 3: for j in range(1, n): sys.stdout.write(stack[0 - j]) where n is the number given.

Prints the n most recent elements appended to the stack.

For example:

If the stack is [4, 3, 2, 1]

Output the following elements of the stack (starting from the top): 1 would print out '1'

Output the following elements of the stack (starting from the top): 2 would print out '12'

Output the following elements of the stack (starting from the top): 3 would print out '123'

The rest is self-explanatory.

  1. FIGURE OUT THIS ONE

FIGURE OUT THE EXPLANATION

You can’t perform that action at this time.