Skip to main content

Module raw

Module raw 

Source
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 BusCoords file.
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/~/like assignment 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 .dss file from disk, following its includes.
parse_raw_with
Parses .dss text. path anchors relative includes; pass the file’s path when the text came from a file, anything descriptive otherwise.