|
@@ -1,533 +0,0 @@
|
|
|
-@manpage Keywords
|
|
|
-
|
|
|
-#### Abstract
|
|
|
-
|
|
|
-Used while declaring classes: class cannot be instantiated with `New`, it must be extended.
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#classes')" onclick="openDocsPage('monkey:user-types#classes')">See Classes.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Alias
|
|
|
-
|
|
|
-Used for convenience types. For example `Vec2i` is a convenience type alias for `Vec2<Int>`.
|
|
|
-
|
|
|
-Used to import extern typedefs too.
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#alias')" onclick="openDocsPage('monkey:user-types#alias')">See Alias.</a>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-#### Array
|
|
|
-
|
|
|
-`Array` is not currently used but is reserved for future use.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:arrays#arrays')" onclick="openDocsPage('monkey:arrays#arrays')">See arrays.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Case
|
|
|
-
|
|
|
-To be combined with with the `Select` statement.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:conditional-statements#select')" onclick="openDocsPage('monkey:conditional-statements#select')">See Select.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Cast
|
|
|
-
|
|
|
-Allows you to cast custom pointers.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:pointers#casting')" onclick="openDocsPage('monkey:pointers#casting')">See pointer casting.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Catch
|
|
|
-
|
|
|
-The `Catch` keyword is part of the Try/Catch exception-handling construct.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:error-handling#error-handling')" onclick="openDocsPage('monkey:error-handling#error-handling')">See error handling.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Class
|
|
|
-
|
|
|
-Marks the start of a class object definition.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#classes')" onclick="openDocsPage('monkey:user-types#classes')">See Classes.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Const
|
|
|
-
|
|
|
-Allows you to declare a constant.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:variables#consts')" onclick="openDocsPage('monkey:variables#consts')">See Consts.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Continue
|
|
|
-
|
|
|
-Used to skip a loop.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#continue')" onclick="openDocsPage('monkey:loop-statements#continue')">See loops.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### CString
|
|
|
-
|
|
|
-Reserved keyword.
|
|
|
-C style String for external string parameters.
|
|
|
-
|
|
|
-#### Default
|
|
|
-
|
|
|
-Marks the start of the default code block of a `Select` statement.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:conditional-statements#select')" onclick="openDocsPage('monkey:conditional-statements#select')">See Select.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Delete
|
|
|
-
|
|
|
-`Delete` is not currently used but is reserved for future use.
|
|
|
-
|
|
|
-#### Eachin
|
|
|
-
|
|
|
-Allows you to use `For` loop with collections.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#for--eachin')" onclick="openDocsPage('monkey:loop-statements#for--eachin')">See For(Eachin).</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Else
|
|
|
-
|
|
|
-To be combined with the `If` statement.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:conditional-statements#if')" onclick="openDocsPage('monkey:conditional-statements#if')">See If.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Elseif
|
|
|
-
|
|
|
-To be combined with the `If` statement.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:conditional-statements#if')" onclick="openDocsPage('monkey:conditional-statements#if')">See If.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### End
|
|
|
-
|
|
|
-Ends all kind of declarations/statements
|
|
|
-
|
|
|
-#### Endif
|
|
|
-
|
|
|
-Ends `If` statement.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:conditional-statements#if')" onclick="openDocsPage('monkey:conditional-statements#if')">See If.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Enum
|
|
|
-
|
|
|
-32 Bit integer Enumerated Type.
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:enums#enums')" onclick="openDocsPage('monkey:enums#enums')">See Enums.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Exit
|
|
|
-
|
|
|
-Used to terminate a loop.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#exit')" onclick="openDocsPage('monkey:loop-statements#exit')">See Exit.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Extends
|
|
|
-
|
|
|
-Used for class declaration.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#classes')" onclick="openDocsPage('monkey:user-types#classes')">See Classes.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Extension
|
|
|
-
|
|
|
-Used to add some features to an existing user defined type without inheritance.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#extensions')" onclick="openDocsPage('monkey:user-types#extensions')">See Extensions.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Extern
|
|
|
-
|
|
|
-Marks the start of definitions for C/C++ imports.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:native-code#integration-with-native-code')" onclick="openDocsPage('monkey:native-code#integration-with-native-code')">See extern native code.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### False
|
|
|
-
|
|
|
-Boolean False value
|
|
|
-
|
|
|
-#### Field
|
|
|
-
|
|
|
-Fields are variables that live inside the memory allocated for an instance of a class or struct.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#fields')" onclick="openDocsPage('monkey:user-types#fields')">See Fields.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Final
|
|
|
-
|
|
|
-Methods declared as `Final` are non-virtual and cannot be overridden by a subclass method.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#classes')" onclick="openDocsPage('monkey:user-types#classes')">See Classes.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### For
|
|
|
-
|
|
|
-Marks the start of a `For` loop
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#for--numeric')" onclick="openDocsPage('monkey:loop-statements#for--numeric')">See For loops.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Forever
|
|
|
-
|
|
|
-Used at the end of a `Repeat` loop. The loop will loop forever unless `Exit` is called.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#repeat')" onclick="openDocsPage('monkey:loop-statements#repeat')">See Repeat loops.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Friend
|
|
|
-
|
|
|
-`Friend` is not currently used but is reserved for future use.
|
|
|
-
|
|
|
-#### Function
|
|
|
-
|
|
|
-Used to declare a function within a struct, a class or at global scope.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:functions#global-functions')" onclick="openDocsPage('monkey:functions#global-functions')">See global Functions.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Getter
|
|
|
-
|
|
|
-`Getter` is not currently used but is reserved for future use.
|
|
|
-
|
|
|
-#### Global
|
|
|
-
|
|
|
-Global variables live in global memory and exist for the lifetime of the application.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:variables#global-variables')" onclick="openDocsPage('monkey:variables#global-variables')">See variables.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### If
|
|
|
-
|
|
|
-The `If` statement allows you to conditionally execute a block of statements depending on the result of a series of boolean expressions.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:conditional-statements#if')" onclick="openDocsPage('monkey:conditional-statements#if')">See If.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Implements
|
|
|
-
|
|
|
-Used to declare classes implementing an interface.
|
|
|
-`Implements` can also be combined with `where` to check generics type constrain.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#interfaces')" onclick="openDocsPage('monkey:user-types#interfaces')">See interfaces.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Import
|
|
|
-
|
|
|
-Assets and code files can be imported with 'Import'
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:modules#importing-modules')" onclick="openDocsPage('monkey:modules#importing-modules')">See modules.</a>
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:assets-management#importing-assets')" onclick="openDocsPage('monkey:assets-management#importing-assets')">See assets.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Inline
|
|
|
-
|
|
|
-`Inline` is not currently used but is reserved for future use.
|
|
|
-
|
|
|
-#### Interface
|
|
|
-
|
|
|
-Interfaces are Class models definition. It's a pure abstract object to be implemented by a `Class`.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#interfaces')" onclick="openDocsPage('monkey:user-types#interfaces')">See interfaces.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Internal
|
|
|
-
|
|
|
-`Internal` is not currently used but is reserved for future use.
|
|
|
-
|
|
|
-#### Lambda
|
|
|
-
|
|
|
-A lambda function is a special type of function that can be declared in the middle of an expression.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:functions#lambda-functions')" onclick="openDocsPage('monkey:functions#lambda-functions')">See Lambda functions.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Local
|
|
|
-
|
|
|
-Local variables live on the stack. They are lost once their scope is exited.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:variables#local-variables')" onclick="openDocsPage('monkey:variables#local-variables')">See variables.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Method
|
|
|
-
|
|
|
-A Method is special type of function associated with a Class or a Struct. It can acces the object fields.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#methods')" onclick="openDocsPage('monkey:user-types#methods')">See methods.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Namespace
|
|
|
-
|
|
|
-All identifiers declared in a monkey2 program file end up inside a 'namespace'.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:namespaces#declaring-namespaces"')" onclick="openDocsPage('monkey:namespaces#declaring-namespaces"')">See Namspaces.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### New
|
|
|
-
|
|
|
-`New` calls a Class, Struct or Array constructor. It must be called before using a Class or an Array. It is advised to call it before using a struct.
|
|
|
-
|
|
|
-#### Next
|
|
|
-
|
|
|
-Used at the end of a `For` loop.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#for--numeric')" onclick="openDocsPage('monkey:loop-statements#for--numeric')">See For loops.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Operator
|
|
|
-
|
|
|
-`Operator` is used to declare special methods using a set of available expressions (+,-,/,<>,...)
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:expressions#operator-overloading')" onclick="openDocsPage('monkey:expressions#operator-overloading')">See Operator overloading.</a>
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:operator-overloading#operator-overloading')" onclick="openDocsPage('monkey:operator-overloading#operator-overloading')">See article on Operator overloading.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Override
|
|
|
-
|
|
|
-Used to override a virtual method when declaring a sub-Class.
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#classes')" onclick="openDocsPage('monkey:user-types#classes')">See Classes.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Print
|
|
|
-
|
|
|
-Prints a String or a numeric value to the output console.
|
|
|
-
|
|
|
-#### Private
|
|
|
-
|
|
|
-Sets the acces control of a Class or Struct members to "Private". Private members can only be accessed by the original class OR by any code within the same .monkey2 file.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#encapsulation')" onclick="openDocsPage('monkey:user-types#encapsulation')">See encapsulation.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Property
|
|
|
-
|
|
|
-Property is a special type of field that may include some getter/setter additionnal code if desired.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#properties')" onclick="openDocsPage('monkey:user-types#properties')">See Properties.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Protected
|
|
|
-
|
|
|
-Sets the acces control of a Class or Struct members to "Protected". Protected members can only be accessed by the original class and subclasses OR by any code within the same .monkey2 file.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#encapsulation')" onclick="openDocsPage('monkey:user-types#encapsulation')">See encapsulation.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Protocol
|
|
|
-
|
|
|
-`Protocol` is not currently used but is reserved for future use.
|
|
|
-
|
|
|
-#### Public
|
|
|
-
|
|
|
-Sets the acces control of a Class or Struct members to "Public". Public members can be accessed from anywhere. It's the default level.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#encapsulation')" onclick="openDocsPage('monkey:user-types#encapsulation')">See encapsulation.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Repeat
|
|
|
-
|
|
|
-Used to start a `Repeat` loop
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#repeat')" onclick="openDocsPage('monkey:loop-statements#repeat')">See Repeat.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Return
|
|
|
-
|
|
|
-Used to end and return the expected value of a `Function`, `Method` or `Operator`
|
|
|
-
|
|
|
-
|
|
|
-#### Select
|
|
|
-
|
|
|
-The Select statement allows you to execute a block of statements depending on a series of comparisons. `Select` combines with `Case` and `Default`
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:conditional-statements#select')" onclick="openDocsPage('monkey:conditional-statements#select')">See Select.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Setter
|
|
|
-
|
|
|
-Marks the start of a Property setter definition.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#properties')" onclick="openDocsPage('monkey:user-types#properties')">See Properties.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Static
|
|
|
-
|
|
|
-`Static` is not currently used but is reserved for future use.
|
|
|
-
|
|
|
-#### Step
|
|
|
-
|
|
|
-Defines the incrementation step for `Next` loops.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#for--numeric')" onclick="openDocsPage('monkey:loop-statements#for--numeric')">See For loops.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Struct
|
|
|
-
|
|
|
-Used to declare a `Struct`
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#structs')" onclick="openDocsPage('monkey:user-types#structs')">See Structs.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Then
|
|
|
-
|
|
|
-Facultative keyword used in combination with the `If` keyword.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:conditional-statements#if')" onclick="openDocsPage('monkey:conditional-statements#if')">See If.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Throw
|
|
|
-
|
|
|
-The `Throw` keyword is part of the Try/Catch exception-handling construct.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:error-handling#error-handling')" onclick="openDocsPage('monkey:error-handling#error-handling')">See error handling.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Throwable
|
|
|
-
|
|
|
-The Throwable class must be extended by all classes that are intended to be used with `Throw`.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:error-handling#error-handling')" onclick="openDocsPage('monkey:error-handling#error-handling')">See error handling.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### To
|
|
|
-
|
|
|
-Defines range of values to be assigned to the index variable in a For/Next loop.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#for--numeric')" onclick="openDocsPage('monkey:loop-statements#for--numeric')">See For loops.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Try
|
|
|
-
|
|
|
-Declares the start of a Try/Catch block.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:error-handling#error-handling')" onclick="openDocsPage('monkey:error-handling#error-handling')">See error handling.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### TypeInfo
|
|
|
-
|
|
|
-Returns the type of a variable/object.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:reflection#typeof-and-typeinfo')" onclick="openDocsPage('monkey:reflection#typeof-and-typeinfo')">See relfection.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Until
|
|
|
-
|
|
|
-Marks the end of a Repeat/Until loop. The `Until` keyword is also found as a modifier in For/Next loops.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#repeat')" onclick="openDocsPage('monkey:loop-statements#repeat')">See Repeat.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Using
|
|
|
-
|
|
|
-The `Using` directive provides a way to add namespace 'search paths' for locating identifiers.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:namespaces#accessing-namespaces')" onclick="openDocsPage('monkey:namespaces#accessing-namespaces')">See Namespaces.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Var
|
|
|
-
|
|
|
-`Var` is not currently used but is reserved for future use.
|
|
|
-
|
|
|
-#### Variant
|
|
|
-
|
|
|
-The `Variant` type is a primitive type that can be used to 'box' values of any type.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:variants#variants')" onclick="openDocsPage('monkey:variants#variants')">See Variants.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Varptr
|
|
|
-
|
|
|
-`Varptr` is used to reference pointers.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:pointers#referencing')" onclick="openDocsPage('monkey:pointers#referencing')">See Pointers.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Virtual
|
|
|
-
|
|
|
-A virtual method is a method that can be overriden.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:user-types#methods')" onclick="openDocsPage('monkey:user-types#methods')">See methods.</a>
|
|
|
-
|
|
|
-
|
|
|
-#### Wend
|
|
|
-
|
|
|
-Wend, short for While [loop] End, marks the end of a While loop.
|
|
|
-
|
|
|
-<br>
|
|
|
-monkey:loop-statements#while
|
|
|
-
|
|
|
-
|
|
|
-#### Where
|
|
|
-
|
|
|
-`Where` allows generic type constrains.
|
|
|
-
|
|
|
-#### While
|
|
|
-
|
|
|
-Marks the start of a While loop.
|
|
|
-
|
|
|
-<br>
|
|
|
-<a href="javascript:void('monkey:loop-statements#while')" onclick="openDocsPage('monkey:loop-statements#while')">See While.</a>
|
|
|
-
|