Expand description
Tokenizer matching OpenDSS’s TParser (Parser/ParserDel.cpp).
A command line is a sequence of parameters, positional or name=value.
Delimiters are , and = plus space and tab; a token opening with one of
( " ' [ { runs to the matching closer and keeps delimiters inside;
! and // start a comment that eats the rest of the line. A token
beginning with @ is replaced by the named parser variable, keeping any
.node suffix. Quoted tokens parse as RPN when read as numbers; vector
values re-tokenize their content with | terminating a matrix row.
Structs§
- BusSpec
- A
bus1=name.1.2.0bus reference: name plus ordered node numbers. - Param
- One parameter from a command line.
- Scanner
- Value
- A raw value token.
quotedrecords that the token came from a quote pair, which switches numeric interpretation to RPN.
Enums§
Type Aliases§
- VarMap
- Parser variables (
var @x=...), looked up case insensitively with the leading@included in the key.