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 components output from
split_macros
.
Enumsยง
- Kinds of
MacroComponent
.
Traitsยง
Functionsยง
- define_
var ๐ - get_
numeric_ ๐var - parse_
pdx ๐Parse a whole file into aBlock
. - 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 aToken
containing its source script) intoMacroComponent
. - warn_
macros ๐
Type Aliasesยง
- HasMacro
Params ๐