STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
sequencer::ScriptProgram Struct Reference

A parsed script, as a flat arena. More...

#include <StateScript.hpp>

Collaboration diagram for sequencer::ScriptProgram:
[legend]

Public Member Functions

bool empty () const

Public Attributes

std::vector< Stmt > stmts
std::vector< Expr > exprs
std::vector< int32_t > block_items
 Statement indices, grouped into contiguous [begin, end) block ranges.
int32_t top_begin = 0
int32_t top_end = 0
std::vector< SlugRef > slugs
 Every slug reference in SOURCE ORDER, with spans.
std::vector< std::string > variables
uint32_t max_depth = 0

Detailed Description

A parsed script, as a flat arena.

Children are int32_t indices, never pointers, and -1 means none. This is deliberate: the whole program copies by value into ScriptRunner::start() with no ownership question — matching HoldSpec's "a number that is passed in cannot go stale" discipline — and every size cap becomes a vector size check rather than a tree walk.

Definition at line 158 of file StateScript.hpp.

Member Function Documentation

◆ empty()

bool fsw::script::ScriptProgram::empty ( ) const
inline

Definition at line 171 of file StateScript.hpp.

Member Data Documentation

◆ block_items

Statement indices, grouped into contiguous [begin, end) block ranges.

Definition at line 162 of file StateScript.hpp.

◆ exprs

Definition at line 160 of file StateScript.hpp.

◆ max_depth

Definition at line 169 of file StateScript.hpp.

◆ slugs

std::vector<SlugRef> fsw::script::ScriptProgram::slugs

Every slug reference in SOURCE ORDER, with spans.

The rename path rewrites these; the pressure subscriber derives its subscribe list from the Ns::PtSensor ones.

Definition at line 167 of file StateScript.hpp.

◆ stmts

Definition at line 159 of file StateScript.hpp.

◆ top_begin

Definition at line 163 of file StateScript.hpp.

◆ top_end

Definition at line 164 of file StateScript.hpp.

◆ variables

std::vector<std::string> fsw::script::ScriptProgram::variables

Definition at line 168 of file StateScript.hpp.


The documentation for this struct was generated from the following file: