6673846770

From Esolang
Jump to navigation Jump to search

6673846770 is an esoteric programming language created by user Larryrl, in 2021, whose name had already been used for an esoteric language, thus the name change. It operates on an array of cells,

Interpreter

The interpreter, which is coded using Qb64, takes 6673846770 source files as input and interprets them one character at a time.

Syntax

The syntax of the language is similar to some of the languages which have single character instructions.

  • Allows 3 user variables
  • Two accumulators are manipulated to create values for everything
  • Jumping from place to place within a source code is supported

Instructions

] Selects the first accumulator
[ selects the second accumulator
| sets or changes the mode of the accumulator between addition and subtraction.
! Adds 1, or subtracts 1 from the accumulator
( adds 15, or subtracts 15 from the accumulator
) adds 20, or subtracts 20 from the accumulator
A-z a-z comment.
} appends the value of the accumulator to a temporary output variable as text.
{ sets the foreground color to the value of the accumulator
Pound sign sets the background color to the value of the accumulator
^ prints to the screen the text in the temporary output variable
~ jumps ahead in the program code to the next line following the & symbol.
+ adds the values from both accumulators.
- subtracts the value of the second accumulator from the first.

  • multiplies the two accumulator values together.

% divides the value of the second accumulator from the first.
@ this, in a program source code, prints the source code out to the screen, and therefore is considered quine.
. Adds 10, or subtracts 10 from the accumulator.
` resets the first or second accumulator to 0.
_ adds 5, or subtracts 5 from the accumulator.
' Returns to the line following the ~.
$ ends the program.
1 jumps ahead in the program code to the line following the next 2 symbol.
3 Returns to the line following the 1 symbol.
4 Store the value of the selected accumulator into Slot #1.
5 Store the value of the selected accumulator into Slot #2.
6 Store the value of the selected accumulator into Slot #3.
7 prints the data in slot1 to the screen.
8 prints the data in slot2 to the screen.
9 prints the data in slot3 to the screen.

Example

This example will print the classic "Hello World" greeting:

Hello World #2 In 6673846770

]!!!!!!!!!!!!:!;`!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!}|!!!}|!!!!!!!}}!!!}`...!!}.....!!!!!}|!!!!!!!!}|!!!}|!!!!!!}!!!!!!!!}`^


This example will print the entire source code to the screen:

Quine In 6673846770@

A shorter version of quine is simply:

@


External Link

Interpreter in Qb64 written by the creator of the language