Yogstation 13 - Modules - TypesVar Details - Proc Details

/datum/n_Parser

Vars

curTokenThe token at in .
errorsA list of fatal errors found by the parser. If there are any items in this list, then it is not safe to run the returned AST.
indexThe parser's current position in the token's list.
tokensA list of tokens in the source code generated by a scanner.
warningsA list of non-fatal problems in the script.

Procs

NextTokenSets to the next token in the list, or null if there are no more tokens.
ParseReads the tokens and returns the AST's node. Be sure to populate the tokens list before calling this procedure.

Var Details

curToken

The token at in .

errors

A list of fatal errors found by the parser. If there are any items in this list, then it is not safe to run the returned AST.

index

The parser's current position in the token's list.

tokens

A list of tokens in the source code generated by a scanner.

warnings

A list of non-fatal problems in the script.

Proc Details

NextToken

Sets to the next token in the list, or null if there are no more tokens.

Parse

Reads the tokens and returns the AST's node. Be sure to populate the tokens list before calling this procedure.