ZedLX Quick Reference
Execution Model |
imperative |
Typing Discipline |
static, nominative, partially inferred |
Name Equivalence |
case-sensitive |
Semantics of Variables |
pure values |
Scoping |
lexical |
Keywords |
if, else, blo, do, while, for, switch, select, default, onbreak, onend, onerror, or, and, not, break, print, println, continue, return, true, false, fn, void, class, struct, typedef, new, object, include, import, const, template |
Plain Statements |
print, println, break, continue, return, do-while, statement of new variables, statement of effect, assignment statement |
Block-ended Statements |
if, for, while, blo, global function definition |
Built-in Types |
int, num, string, char, bool, color, colorA, rgb, rgba, point2D,
vector2D, imageLoader, image, sprite, fontTag, printEff, alignX, alignY; |
Built-in Globals |
functions: rn, rn01, execTm, pointerPos, mousePos, lastKeyName, isPressed, sqrt, pow, log, sin, cos procedures: sleepS, sleepMs, terminate, vsync, mouseHide, mouseShow, circle, circlep, disc, discp, trianglep, line, linep, linew, linewp, hline, vline, putpixel, fillChar, clearScr, clear, fillScr, boxEdgep, boxEdge, boxFill, boxFillp |
Planned Features |
structures, classes, unions, maps, binary types, objects & pointers, anonymous functions, conditional expression, events, additional I/O. |
Type int |
|
---|---|
Operators |
+ - * // %% < > <= >= = == != <> |
Members |
atmost, atleast, num, str, pad, hex, oct, bin, roman, digitn, digit, roundDigit |
Type num |
|
---|---|
Operators |
+ - * / < > <= >= = == != <> |
Members |
atmost, atleast, int, round, ceil, floor, mod, digit, roundDigit, str, al |
Converts from |
int |
Type string |
|
---|---|
Operators |
+ [] = == != <> |
Members |
n, array, after, before, cut, cuta, cutb, pad, padb, append |
Converts from |
char |
Type char |
|
---|---|
Operators |
= == != <> |
Members |
str |
Type bool |
|
---|---|
Operators |
and or not ! = == != <> |
Type color |
|
---|---|
Operators |
= == != <> |
Members |
r, g, b, rgb, seta |
Converts from |
rgb |
Type colorA |
|
---|---|
Operators |
= == != <> |
Members |
r, g, b, a, rgba |
Converts from |
color, rgb, rgba |
Type rgb |
|
---|---|
Operators |
= == != <> |
Members |
r, g, b, seta |
Type rgba |
|
---|---|
Operators |
= == != <> |
Members |
r, g, b, a |
Converts from |
rgb |
Type point2D |
|
---|---|
Operators |
+ - = == != <> |
Members |
x, y, dist, is0, setx, sety, add, vecTo, v, alti |
Type vector2D |
|
---|---|
Operators |
+ - * / = == != <> |
Members |
x, y, len, unit, is0, setx, sety, add, mul, rot, rotdg, orth, dot, p, alti |
Type imageLoader |
|
---|---|
Members |
isError, isDone, url, getImage |
Type image |
|
---|---|
Members |
dx, dy, size, putpixel, line, linew, triangle, circle, disc, boxEdge, boxFill, fill, crop, cropResize, putImage, putSprite, putSpritedg, tile, text, draw |
Type sprite |
|
---|---|
Members |
center, size, image, draw, drawdg, drawTf |
Type Array of T, one dimensional (parametric on type T) |
|
---|---|
Operators |
if T is comparable: = == != <> |
Members |
n, isEmpty, isIndex, push, pop, pushFront, popFront, join, delete, first, last, dupl, insert, grow, shrink, hd, tl |