Expand description
Script execution and the raw object layer.
A .dss file is a command script. This layer splits it into command
lines (handling block comments), resolves command verbs with the same
exact-then-prefix rule OpenDSS uses, follows Redirect/Compile
includes, and accumulates New/Edit/~ property assignments into raw
objects with property names resolved against the class tables. Values
stay untyped Value tokens; interpretation happens in the readers.
Structs§
- BusCoord
- Bus coordinates from a
BusCoordsfile. - RawCommand
- A command this layer does not execute, preserved verbatim.
- RawDss
- The executed script: objects, options, and preserved commands.
- RawObject
- An accumulated object: every
New/Edit/~/likeassignment that touched it, in order. Values are raw tokens. - RawProp
- One property assignment as applied to an object, in application order.
Traits§
- Loader
- Supplies included file text, so tests can run without a filesystem.
Functions§
- parse_
raw_ file - Parses a
.dssfile from disk, following its includes. - parse_
raw_ with - Parses
.dsstext.pathanchors relative includes; pass the file’s path when the text came from a file, anything descriptive otherwise.