10. Static Language Reference¶
10.1. Types¶
-
static-type
void¶
-
static-type
int¶
-
static-type
uint¶
-
static-type
bool¶
-
static-type
double¶
-
static-type
float¶
-
static-type
int8¶
-
static-type
int16¶
-
static-type
int32¶
-
static-type
int64¶
-
static-type
uint8¶
-
static-type
uint16¶
-
static-type
uint32¶
-
static-type
uint64¶
-
static-type
opaque¶
-
static-type
rawstring¶
10.2. Symbols¶
-
var
NULL¶
-
var
static-ast¶
-
var
static-compile-settings¶
-
var
epsilon-float¶
-
var
epsilon-double¶
10.3. Macros¶
-
infix-macro ( return-type
<-([ argument-type ... ]))¶ Precedence: 800 Associativity: >
-
macro (
structname expression ... )¶ Parameters: - name – if symbolic, a declaration in the current scope, otherwise an expression expected to resolve to a string.
-
macro (
<-return-type ([ argument-type ... ]))¶
-
macro (
offsetoftype name )¶
-
macro (
&x )¶
-
macro (
static-quoteexpression )¶
-
macro (
const[ name ]:type init ... )¶
-
macro (
static[ name ]:type [ init ... ])¶
-
macro (
static[ name ]([ argument ... ]):type expression ... )
-
macro (
staticname (*) static-function ... )
-
macro (
static-macrofunction )¶
-
macro (
static-macro[ name ]([ argument ... ]) expression ... )
-
macro (
static-intrinsicfunction )¶
-
macro (
static-intrinsic[ name ]([ argument ... ]) expression ... )
10.4. Struct Syntax Macros¶
-
symbol-prefix
&symbol ¶
-
infix-macro ( name
:type )¶ Precedence: 50 Associativity: <
-
infix-macro ( return-type
<--([ argument-type ... ]))¶ Precedence: 800 Associativity: >
-
macro (
unionexpression ... )¶
-
macro (
metamethodname ([ arguments ... ]):type expression ... )¶
-
macro (
macro-metamethodname ([ arguments ... ]) expression ... )¶
-
macro (
methodname ([ arguments ... ]):type expression ... )¶
-
macro (
methodname (*) expression ... )
-
macro (
fieldname type )¶
-
macro (
usingfield-definition )¶
10.6. Static Macros¶
-
static-macro (
escapeexpression )¶
-
static-macro (
cloopvariable-name ( start stop step ) expression ... )¶
-
static-macro (
alias-casttype expression )¶
10.7. Functions¶
-
function (
arrayofobject ... )¶
-
function (
vectorofobject ... )¶
-
function (
string-arraystring ... )¶
-
function (
byte-offsetcount )¶
-
function (
overloadfunction ... )¶
-
function (
static-globaltype init )¶
-
function (
static-symboltype name )¶
-
function (
static-type?object )¶
-
function (
static-list?object )¶
-
function (
static-rawlist?object )¶
-
function (
static-function?object )¶
-
function (
static-function-definition?object )¶
-
function (
static-constant?object )¶
-
function (
static-macro?object )¶
-
function (
static-quote?object )¶
-
function (
static-symbol?object )¶
-
function (
static-newlist[ argument ... ])¶
-
function (
static-newtype [ init ... ])¶
-
function (
static-constantobject )¶
-
function (
static-offsetofstruct name )¶
-
function (
static-buildfilename [ filetype ] functiontable [ arguments target ])¶
-
function (
c-requirefilename [ compiler-options ])¶
-
function (
c-definec-source-string [ compiler-options ])¶
-
function (
static-list-insertlist [ index ] element )¶
-
function (
static-ast?object )¶
-
function (
static-traceobject )¶
-
function (
void?object )¶
-
function (
static-functypeargument-list return-type )¶
-
function (
static-structname field-list )¶
-
function (
static-fieldname type )¶
-
function (
tuple[ type ... ])¶
-
function (
vectortype count )¶
-
function (
^&type )¶
-
function (
casttype object )¶
-
function (
static-typeofobject )¶
-
function (
sizeofobject )¶
-
function (
static-macro-fallbackmacro-function lua-function )¶
-
function (
float==a b )¶
10.7.1. AST Node Constructors¶
-
function (
static-arrayoftype expression-list )¶
-
function (
static-vectoroftype expression-list )¶
-
function (
static-tupleexpression-list )¶
-
function (
static-sizeof-opexpression )¶
-
function (
static-opreturn-type op-name argument-list )¶
-
function (
static-deferexpression )¶
-
function (
static-callfunction [ argument ... ])¶
-
function (
static-casttype argument-list )¶
-
function (
static-method-callexpression name argument-list )¶
-
function (
static-dostatement-list )¶
-
function (
static-do-splicestatement-list )¶
-
function (
static-forsymbol start stop step statement-list )¶
-
function (
static-whileexpression statement-list )¶
-
function (
static-repeat-untilexpression statement-list )¶
-
function (
static-break)¶
-
function (
static-varsymbol expression )¶
-
function (
static-returnexpression )¶
-
function (
static-refexpression )¶
-
function (
static-derefexpression )¶
-
function (
static-ifexpression then-statement-list else-statement-list )¶
-
function (
static-ifexprexpression then-expression else-expression )¶
-
function (
static-selectexpression true-expression false-expression )¶
-
function (
static-instatement-list expression-list )¶
-
function (
static-assignlhs-expression rhs-expression )¶
-
function (
static-subscriptexpression name )¶
-
function (
static-memberexpression name )¶
-
function (
static-argumentfunctype index name )¶
-
function (
static-functionargument-list functype statement-list [ name [ filename ]])¶