Asig

From Esolang
Jump to navigation Jump to search

Asig was created by Adam on March 30, 2014. The language uses symbol characters to complete commands. It can be used to complete simple (or possibly complex) commands and make completely useless programs. The language was based on basic Java operations and commands.

Code

In order to make commands, use the specified symbol to carry out commands/initiate commands, which are followed by letters or numbers to complete commands.

The symbol part of the language is composed of the following characters:

`~!@#$%^&*()-_=+[]{};:'"\|,<.>/?*

Use the "~" character to start a new command, following that, write the rest of the command within a "{}".

  • To add a variable write "%" and then the name.
  • To give a variable a value do the command below. (It starts being equal to 0)
  • To do any mathematical operation with variables write "&" to initiate it then "%" and the variable name, then to initiate the math operation write "#" and an operation such as "+" "-" "*" "/" and then either a number or another variable.(between the "&" and "%" use a ":")
  • To add a string of text use "@", name it, and within a "[]" write the string of text.
  • To print out a variable or string of text, use "|" and then use write either "%" or "@" then the name of desired variable/string of text.
  • To ask for an input from the user write "^" followed by a "()" with a "#" "@" inside to specify the type of input, either text or numbers.
  • To test variables for true or false (e.g. does it equal two or not?), write "^", which would mean 'test', followed by a colon and the variable then an "=".
  • To use the true or false output, use "\", meaning 'if true' followed by an mathematical operation, print command, etc.

Examples

To create a variable and call it 'Joe', then add 2 to it, then print it out, do the following.

~{%Joe}
~{&:%Joe#+2}
~{|%Joe}

This would print out 2.