Types

Absent

Represents a target configuration list item that must be absent

Any

Any type is parent type of all types. All instances in NGS are of type Any. F(x) ... is same as F(x:Any) ...

ArgsMismatch

Represents calling failure due to arguments vs parameters mismatch.

Arr

Array - list of items accessed by zero-based index

ArrDiff

Represents difference of elements between two arrays (order unimportant)

ArrIter

Arr (array) iterator.

ArrLike

Parent type for user-defined types with array-like behaviour. Use in cases when you would like to inherit from built-in Arr. Inheriting from built-ins is not possible for now.

AssertFail

Represents failed asserttion, thrown by assert(). Should be used to catch programming errors.

AttrNotFound

Represents an error of reading non-existent attribute of an object.

Backtrace

Represents stack trace

BasicType

Type for builtin types. F f(t:BasicType) ...; f(Arr)

BasicTypeInstance

A type for instances of builtin types. Children types are not displayed as this type is specially optimized.

BlockDevice

Represents a block device in a file system (S_IFBLK)

Bool

Boolean type. The only instances are true and false

Box

A box which might (FullBox) or might not (EmptyBox) contain a value

C_DIR

C language DIR type for low level directory operations. Please do not use directly unless you are extending stdlib.

c_ffi_cif

Unfinished feature. Don't use!

c_ffi_type

Unfinished feature. Don't use!

c_pthread_attr_t

c_pthread_mutex_t

c_pthread_t

CallFail

Represents calling failure.

CException

Base type for exceptions arising from errors returned by calling C functions

CharDevice

Represents a character device in a file system (S_IFCHR)

CLib

C library, result of dlopen(), not used yet

Closure

Closure type. User-defined functions/methods are Closures

Command

CompileFail

Represents a compilation error.

ConstIter

Iterator that returns given value forever.

CSym

C symbol, result of dlsym(), not used yet

DelimStr

EXPERIMENTAL. Delimited string. Showing ArrLike usage.

Diff

Represents difference

Dir

Represents a directory in a file system (S_IFBLK)

DirFail

DivisionByZero

Represents an error of dividing by zero.

DlopenFail

Represents failure to open dynamically loaded library (feature is a work in progress).

DontKnowHowToCall

Represents calling failure when it is not known how to call the given object.

Eachable

Parent type of all types that have each() method

Eachable1

Eachable which each() calls the callback with one argument

Eachable2

Eachable which each() calls the callback with two arguments

EmptyArrayFail

Represents an error of using an empty array for an operation that requires at least one element in the array.

EmptyBox

Represents absence of a value

Error

Represents an error. Usually more specific error types are used.

ExactPresence

Represents a target configuration list item in a list

Exception

Represents exceptional situaution. All thrown things shouhld inherit Exception.

ExecutableNotFound

Occurs when executable was not found in path or when executable was absolute or relative and was not found.

FifoFile

Represents a fifo file in a file system (S_IFIFO)

File

Represents a file in a file system (S_IFREG)

FileIOFail

FullBox

Represents presence of a value

Fun

Function type: an Array of Closures, a Closure, or a native method

GlobalNotFound

Represents an error of accessing undefined global variable.

Hash

Hash type. Maps unique keys to their values. Key-Value pairs are stored and iterated in insertion order. Currently Hash type has several limitations: Hash keys are hashed using internal hash() function which can not be overwritten. The internal hash() function exposed to NGS code but adding implementations or setting "hash" to some other function will not affect operation of Hashes. Hash values are compared using internal is_equal() function which can not be overwritten. Both hash() and is_equal() currently handle only Int, Str and arbitrary objects. Comparison of arbitrary objects is done by comparing their addresses in memory.

HashDiff

Represents difference of elements between two hashes (order unimportant)

HashIter

EXPERIMENTAL Hash iterator.

HashLike

Hook

Hook is a simple pub-sub

ImplNotFound

Represents calling failure when arguments do not match any method implementation.

IndexNotFound

Represents an error of out-of-bounds array index.

InstantiatingAbstractType

Int

Integer type. On 64 bit platforms it's a 61 bit signed integer

InternalError

Represents an error which is likely to be NGS implementation bug.

InvalidArgument

Represents an error of calling a method with incorrect argument.

Iter

Iterator. Parent type for all specific iterator types.

KeyNotFound

Represents an error of accessing non-existent key in a hash.

KillFail

Exception representing a failure to kill() a process

KV

Lock

LockFail

LookupFail

Represents an error of accessing non-existent element of a collection.

MainFail

Match

Successful or unsuccessful match result

MatchedParam

ArgvMatcher internal type, do not use!

MatchFail

Matching failure

MatchN

Unsucessfull match result

MatchY

Successful match result

MaybePfx

Prefix that might or might not be present for ~ matching to succeed

MaybeSfx

Suffix that might or might not be present for ~ matching to succeed

MustPfx

Prefix that must be present for ~ matching to succeed

MustSfx

Suffix that must be present for ~ matching to succeed

NativeMethod

Native method type

NgsStrComp

NgsStrCompExp

NgsStrCompImm

NgsStrCompSplatExp

NoData

NoNext

Represents attempt to fetch next value of an iterator when it's exhausted

NormalType

Type for user-defined types. type T1; F f(t:NormalType) ...; f(T1)

NormalTypeConstructor

Default constructor for Normal types. Normal types are user-defined and some of the built-in types.

NormalTypeInstance

A type for instances of user-defined types. Children types are not displayed as this type is specially optimized.

NotImplemented

Null

Null type. Has only one instance, null

Num

NumRange

PartialPresence

Path

Represents file system path

Pfx

Prefix subsequence of a sequence

Pipe

Wrapper around file descriptors returned by PIPE(2)

PipeCreateFail

Represents failure of creating a Pipe when calling PIPE(2)

PredRange

Presence

Represents desired target configuration list item presence

Present

Represents a target configuration list item that must be present

Process

Running or finished process

Range

RangeIter

NOT IMPLEMENTED YET. Iterator that returns values in the given range

ReadFail

Real

Real/Float type. Equivalent to the 'double' type in C

Redir

RegExp

RegExpCompileFail

Represents a regulat expression compilation error.

RequreFail

Res

ResDef

RetryFail

Represents failure on all retries

Return

Return instance types, when thrown, will exit the call frame where they were created returning given value.

Seq

Unused type

Sfx

Suffix subsequence of a sequence

SocketFile

Represents a socket file in a file system (S_IFSOCK)

StackDepthFail

Represents stack overflow error.

Stat

StatFail

Represents a failure in stat() system call.

Stats

A group of named counters

Str

String type

SubSeq

SwitchFail

Represents missing appropriate eswitch/econd/ematch clause.
Represents a link in a file system (S_IFLNK)

Table

Manipulates tabular data

TestFail

TestMessage

TheOneFail

Thread

TtyCheckFail

Type

Type for types. F f(t:Type) ...; f(Arr) ...

UndefinedLocalVar

Represents an error of reading undefined local variable.

UnmatchedParam

ArgvMatcher internal type, do not use!