tiger_lib::parse

Module pdxfile

Source
Expand description

Parses a Pdx script file into a Block.

The main entry points are parse_pdx_file, parse_pdx_macro, and parse_pdx_internal.

Re-exportsยง

Modulesยง

  • lexer ๐Ÿ”’
  • Maintain the parser state for @values and @: directives.
  • parser ๐Ÿ”’

Structsยง

Enumsยง

Traitsยง

  • CharExt ๐Ÿ”’
    A convenience trait to add some methods to char

Functionsยง

  • define_var ๐Ÿ”’
  • get_numeric_var ๐Ÿ”’
  • parse_pdx ๐Ÿ”’
    Parse a whole file into a Block.
  • Parse the content associated with the FileEntry.
  • Parse a string into a Block. This function is meant for use by the validator itself, to allow it to load game description data from internal strings that are in pdx script format.
  • Re-parse a macro (which is a scripted effect, trigger, or modifier that uses $ parameters) after argument substitution. A full re-parse is needed because the game engine allows tricks such as passing # as a macro argument in order to comment out the rest of a line.
  • Parse the content associated with the FileEntry, and update the global parser memory.
  • report_error ๐Ÿ”’
  • split_macros ๐Ÿ”’
    Split a block that contains macro parameters (represented here as a Token containing its source script) into MacroComponent.
  • warn_macros ๐Ÿ”’

Type Aliasesยง