Module pdxfile

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ยง

pub use crate::parse::pdxfile::memory::PdxfileMemory;

Modulesยง

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

Structsยง

MacroComponent
Macro components output from split_macros.

Enumsยง

MacroComponentKind
Kinds of MacroComponent.

Staticsยง

FILE_PARSER ๐Ÿ”’

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_pdx_file
Parse the content associated with the FileEntry.
parse_pdx_internal
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.
parse_pdx_macro
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_reader_export
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ยง

HasMacroParams ๐Ÿ”’