Apraxia
Apraxia is a created by User:Yayimhere, after being disappointed by the use of the before mentioned term. In Apraxia, every string of length ≥1 is valid as code. Apraxia is quite complex compared to some other languages by yayimhere, as it allows recursive functions and variables, as well as null, and a fixed point combinator. All variables in Apraxia are both sub programs/strings, and functions. As such, Apraxia is semi-functionally pure(as all strings are represented by a function).
Etymology
Apraxia's name comes from the name of lisp, as both are speech difficulties. Lisp specifically was chosen as lisp is meme-ed over being full of brackets, or in other words, being very "pattern like".
Syntax
As mentioned before, Apraxia allows all strings of symbols. As such, syntax is very generalized. Note that the last character of the command is :
- For any symbol
Xthat is not recognized: All code between this symbolXand another non recognized symbolY, is interpreted as the value ofXas a variable. ThenYis parsed in the same way, until there are no unrecognized symbols. - For any two symbols
M & Nfollowing each other, that are both recognized: This is function application of the formM(N). Note that for any length of function application, it is nested, so for the symbol setMNWit will be read asM(N(W)). - For any single symbol
Xthat is recognized, but is not in a pair: Expand into its variable value.
Apraxia uses the ISO 8859-1 printable character space.
Semantics
First, there is the last character of the program, which is different from all others. The last character C has the function:
C(XYZ...) -> X(C(YZ...)) C() -> C
This is the before mentioned fixed point combinator, to some extent. As a variable value however, it is just the symbol C. Note that C never is unrecognized, however does end the last variable definition, and is not included in that definition.
For all other variables X, their function is:
X(M) -> C(M(X)) X() -> C(X)
Then, when all variables and functions have been defined, we call the whole program as:
C(Vn)
Where each V is one of the variables defined in the program, with Vn being the last defined. Then the whole program is evaluated. When evaluation has completed, the final result is printed.
Do note that the brackets used above are not actually present in the program in any way. As such, ( and ) are valid symbols in the program.
Examples
XCC
as:
XCC -> C(X) -> X(C()) -> C(C(C))