Unnamed

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Unnamed is a language designed to make manipulating grids and other 2D structures much easier. It uses a series of commands and setup statements to generate an output. This page will be expanded as the feature set improves.

Overview

An Unnamed program starts of with defining the size of the matrix, followed by a series of arguments, followed by the actual code. All whitespace is ignored while parsing.

Setup

Each item in the setup is separated by a :. An example is:

8,10:F:

This will create a matrix with the dimensions of 8x10 and with the arguments F.

Sizes

They're three ways to specify the dimensions of your matrix.

NxM Matrixes

Creating an NxM matrix is probably the most self-explanatory. You simply replace N and M:

N,M:

NxN Matrixes

These are also very similar to the previous method, replace N with the desired size:

N,N:

Auto / Arbitrary length

If case you don't really know what size your program will need to be, you would use this. An example is if you were to specify the size later in the program, or expand the matrix later. This can be done by inserting a question mark:

?:

Arguments

Various arguments will result in different program and output formatting and behavior. Arguments are placed together and then followed by a colon. An example is, if you were to use two arguments, a and argument b, it would look like:

ab:

If you were to have no arguments, it would be as simple as:

:

Note: some arguments such as f and F are almost always used in order for each column to line up.

Argument Description
f Left-aligns each cell
F Right-aligns each cell