Skip to content
A functional programming language with XML syntax
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
.babelrc
.editorconfig
.gitignore
README.md
package.json

README.md

XMLang

XMLang is a functional language with XML syntax.

Operators

Assignment

Op JS Description
func function Function

Arithmetic

Binary operators:

Op JS Description
add + Addition
sub - Subtraction
mul * Multiplication
div / Division
mod % Modulo
expt ** Exponentiation
root Root

Unary operators:

Op JS Description
num + Cast to number
neg - Negation
abs Math.abs Absolute value
sin Math.sin Sine
cos Math.cos Cosine
tan Math.tan Tangent
asin Math.asin Arc sine
acos Math.acos Arc cosine
atan Math.atan Arc tangent

Comparison

Op JS Description
eq == Equal
neq != Not equal
gt > Greater than
lt < Less than
gte >= Greater than or equal
lte <= Less than or equal

Logical

Op JS Description
not ! Logical not
and && Logical and
or `

Conditional

Op JS Description
if ? : If statement
cond switch Conditional
case case Case

Comma

, comma operator

Bitwise

Op JS Description
band & Bitwise and
bor ` `
xor ^ Exclusive or
comp ~ Complement
lsh << Left shift
rsh >> Right shift

Data Types

List, map, set

Each, map

Utilities

Func JS Description
print console.log Print

Credit

Credit to Robert Prehn's article at Revelry for the idea of this language.

You can’t perform that action at this time.