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ยง
Structsยง
- Macro
Component - Macro components output from
split_macros.
Enumsยง
- Macro
Component Kind - Kinds of
MacroComponent.
Staticsยง
- FILE_
PARSER ๐
Traitsยง
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
Tokencontaining its source script) intoMacroComponent. - warn_
macros ๐
Type Aliasesยง
- HasMacro
Params ๐