Tri-Tru-Eso

From Esolang
Jump to navigation Jump to search
Not to be confused with Tri.

Tri-Tru-Eso is an esolang created by User:Yunasha_Hotora. Originaly uploaded to Github at July, 2024. The goal of this lang is "To allow all keyboard sizes user to code." Quoting the Github repository of this esolang.

Instructions

List of commands that can be used.

Keywords

List of Commands and Their Actions
Key Action
OUT Output variable, string, or number
RED Input string, or number to a variable
VAR Declare a variable
TXT Indicate a string
NUM Indicate a number
END End the program
ENL Mark an end of line
NWL Mark a new line for string
FLG Create a flag
JPT Jump to a flag
JPP Jump to a flag if positive
JPN Jump to a flag if negative
SPC Additional space for string
ADD Perform an addition between two variables
SUB Perform a subtraction between two variables
MUL Perform a multiplication between two variables
DIV Perform a division between two variables
MOD Perform a modulo between two variables
CPY Copy a value of a variable to another variable

Numbers

Key and Corresponding Numbers
Key Number
ZRO 0
ONE 1
TWO 2
THR 3
FUR 4
FVE 5
SIX 6
SVN 7
EGH 8
NNE 9
NEG -

Syntax

All key and names must be 3 characters long. no more, no less. This include the string and number, and also need to be capitalized.

  • argument without paranthesis is optional
  • [argument] with paranthesis is required
  • [argument 1 | argument 2] with | is the options
  • ADD, SUB, MUL, DIV, MOD will save the result to the first variable
Commands and Syntax
Key Syntax
OUT [OUT] [TXT | NUM | VAR] [VALUE | VARIABLE NAME]
RED [RED] [TXT | NUM] [VARIABLE NAME] MESSAGE
VAR [VAR] [TXT | NUM] [VALUE]
FLG [FLG] [FLAG NAME]
JPT [JPT] [FLAG NAME]
JPP [JPP] [FLAG NAME] [TARGET VARIABLE]
JPN [JPN] [FLAG NAME] [TARGET VARIABLE]
ADD [ADD] [FIRST VARIABLE] [SECOND VARIABLE]
SUB [SUB] [FIRST VARIABLE] [SECOND VARIABLE]
MUL [MUL] [FIRST VARIABLE] [SECOND VARIABLE]
DIV [DIV] [FIRST VARIABLE] [SECOND VARIABLE]
MOD [MOD] [FIRST VARIABLE] [SECOND VARIABLE]
CPY [CPY] [SOURCE VARIABLE] [TARGET VARIABLE]


Examples

Hello World

OUT TXT HEL
OUT TXT LO, WOR
OUT TXT LD!

Calculator

RED NUM AAA FST SPC
RED NUM BBB SND SPC
RED NUM OPP OPR SPC

VAR NUM DEG ONE


JPP ZZA OPP

ADD AAA BBB
OUT VAR AAA
JPT BTM

FLG ZZA
SUB OPP DEG


JPP ZZB OPP

SUB AAA BBB
OUT VAR AAA
JPT BTM

FLG ZZB
SUB OPP DEG


JPP ZZC OPP

MUL AAA BBB
OUT VAR AAA
JPT BTM

FLG ZZC
SUB OPP DEG


JPP ZZD OPP

DIV AAA BBB
OUT VAR AAA
JPT BTM

FLG ZZD
SUB OPP DEG


JPP ZZE OPP

MOD AAA BBB
OUT VAR AAA
JPT BTM

FLG ZZE

OUT TXT ERR

FLG BTM
OUT TXT NWL
END

Fizz Buzz

RED NUM TRG INP SPC

VAR NUM REP ZRO
VAR NUM TRT THR
VAR NUM TRF FVE
VAR NUM EVL ZRO
VAR NUM VEG NEG ONE

CPY REP TRG
MUL REP VEG
CPY TRG EVL
SUB TRG VEG 

FLG TOP

CPY EVL TRG
MOD EVL TRT

JPP CCC EVL

CPY EVL TRG
MOD EVL TRF

JPP DDD EVL
OUT TXT FIZ
OUT TXT BUZ
JPT DON
FLG DDD

FLG CCC

CPY EVL TRG
MOD EVL TRT

JPP AAA EVL
OUT TXT FIZ
JPT DON
FLG AAA

CPY EVL TRG
MOD EVL TRF

JPP BBB EVL
OUT TXT BUZ
JPT DON
FLG BBB

OUT VAR TRG
FLG DON
OUT TXT NWL

SUB REP VEG
SUB TRG VEG

JPN TOP REP
END

Fibonacci

VAR NUM FST ZRO 
VAR NUM SND ONE 
VAR NUM REP ONE TWO
VAR NUM DEG ONE

OUT VAR FST
OUT VAR SND

FLG TOP

ADD FST SND
OUT VAR FST
ADD SND FST
OUT VAR SND

SUB REP DEG
JPP TOP REP
END

External Resources