MetaGlow

From Esolang
Jump to navigation Jump to search

MetaGlow is a programning language. And it consists mostly of If-Else statements. All of the code is executed in a loop and all the states are saved.

Syntax

Hello, World!

SYSTEM - INACTIVE ?
: [ SYSTEM - ACTIVE ! ]
; [ SYSTEM - INACTIVE ! ]

ACCESS - STDIO ?
: [ ACCESS - STDIO ! ]
; [ CODE - 1 !
    SYSTEM - INACTIVE ! ]

WRITE - AVALIABLE ?
: [ WRITE - "Hello, World!" ! ]
; [ CODE - 1 ! 
    SYSTEM - INACTIVE ! ]

Cat

SYSTEM - INACTIVE ?
: [ SYSTEM - ACTIVE ! ]
; [ SYSTEM - INACTIVE ! ]

ACCESS - STDIO ?
: [ ACCESS - STDIO ! ]
; [ CODE - 1 !
    SYSTEM - INACTIVE ! ]


READ - AVALIABLE ?
: [ WRITE - AVALIABLE ?
    : [ READ - INPUT_TEXT !
        WRITE - INPUT_TEXT ! ]
    ; [ CODE - 1 !
        SYSTEM - INACTIVE ! ]
; [ CODE -  1 !
    SYSTEM - INACTIVE ! ]

Implementations

Currently working on C++ implementation.