MetaGlow

From Esolang
Jump to: navigation, search

MetaGlow is a programning language. And it consists mostly of If-Else statements.

Syntax

The syntax of the MetaGlow code is:

<EXPRESSION>   → <METAMACHINE> - <STATE>
<METAMACHINE>  → <anything except "?", "!", ":", ";", "-" and whitespace>
<STATE>        → <same as METAMACHINE>
<COMMAND>      → <EXPRESSION> !
<TRUE>         → : <COMMAND>
<FALSE>        → ; <COMMAND>

and if statement is:

<EXPRESSION> ?
<any amount of ": <COMMAND or IF>">
<any amount of "; <COMMAND or IF>"> 

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

There aren't any implementation yet.