Yogstation 13 - Modules - TypesVar Details - Proc Details

/datum/n_Scanner/nS_Scanner

Vars

codeposThe scanner's position in the source code.
delimList of characters that denote the start of a new token. This list is automatically populated.
end_stmtList of characters that end a statement. Each item may only be one character long. Default is a semicolon.
ignoreList of characters that are ignored by the scanner. Default is whitespace.
string_delimList of characters that can start and end strings. Default is double and single quotes.

Procs

ReadNumberReads a number into a token.
ReadStringReadString Reads a string in the source code into a token. Arguments: start - The character used to start the string.
ReadSymbolReads a symbol into a token.
ReadWordReads characters separated by an item in into a token.

Var Details

codepos

The scanner's position in the source code.

delim

List of characters that denote the start of a new token. This list is automatically populated.

end_stmt

List of characters that end a statement. Each item may only be one character long. Default is a semicolon.

ignore

List of characters that are ignored by the scanner. Default is whitespace.

string_delim

List of characters that can start and end strings. Default is double and single quotes.

Proc Details

ReadNumber

Reads a number into a token.

ReadString

ReadString Reads a string in the source code into a token. Arguments: start - The character used to start the string.

ReadSymbol

Reads a symbol into a token.

ReadWord

Reads characters separated by an item in into a token.