GolfScratch

From Esolang
Jump to navigation Jump to search

GolfScratch - language for Coding Golf Made By User:ChuckEsoteric08

Commands

PUSH - Push Something To The Stack(If It Is The ACC Push Accumulator)
POP - Pop From Top of The Stack
Print - Print From Top of The Stack
INP Get Input And Push It To The Stack
GOTO [x] - Goto Command [x]
IF [x] [y] [z] - If Top Of The Stack == [x] Goto [y] Else Goto [z]
(space) - Split Commands
CH. - Change ACC To Top Of The Stack

Examples

Hello World

PUSH Hello,_World POP

NOTE:Spaces are used to split Commands so, strings with spaces cannot be printed.

Print 1 Forever

PUSH 1 PRINT GOTO 1

Computation Class

Maybe This is Turing Complete, Because You Can Make Infinity Loop,and the stack is unbounded. Due to its use of only 7 commands, this language would also be considered a Turing tarpit if so.

External links

Interpreter In Scratch

Github Repositpry