plcopen 0.22.0
载入中...
搜索中...
未找到
plcopen::core::st::sfc_detail 命名空间参考

类

struct  NetworkDraft
struct  ProgramDraft
struct  Prepared
struct  FunctionEffectInfo

枚举

enum class  RegionKind : std::uint8_t { none = 0 , transition , action }

函数

char lower_char (char c)
std::string lower_copy (std::string_view text)
bool ident_char (char c)
bool word_at (std::string_view source, std::size_t at, std::string_view word)
std::size_t find_word (std::string_view source, std::string_view word, std::size_t from=0)
std::size_t find_code_sequence (std::string_view source, std::string_view sequence, std::size_t from=0)
std::size_t skip_space (std::string_view source, std::size_t at)
std::size_t skip_trivia (std::string_view source, std::size_t at)
std::string read_ident (std::string_view source, std::size_t &at)
std::string trim (std::string_view text)
void source_position (std::string_view source, std::size_t offset, std::int32_t &line, std::int32_t &column)
void source_span (std::string_view source, std::size_t begin, std::size_t end, std::int32_t &line, std::int32_t &column, std::int32_t &end_line, std::int32_t &end_column)
void add_diag (std::vector< Diagnostic > &diagnostics, DiagCode code, std::string_view source, std::size_t offset)
std::vector< std::string > split_names (std::string_view text)
bool parse_qualifier (std::string_view text, SfcQualifier &qualifier)
bool timed (SfcQualifier qualifier)
bool parse_duration (std::string_view text, std::int64_t &duration)
bool parse_action_blocks (std::string_view content, std::size_t absolute, std::string_view source, SfcStepDecl &step, std::vector< Diagnostic > &diagnostics, std::uint16_t limit)
bool parse_network (std::string_view source, std::size_t begin, std::size_t end, std::string_view program_lower, const CompileOptions &options, NetworkDraft &draft, std::vector< Diagnostic > &diagnostics)
bool validate_graph (NetworkDraft &draft, std::string_view source, std::vector< Diagnostic > &diagnostics)
void collect_declaration_names (std::string_view block, std::set< std::string > &names)
void collect_var_blocks (std::string_view source, std::string_view word, std::set< std::string > &names, bool located_only)
void collect_scope_variables (std::string_view source, std::set< std::string > &names)
void collect_scope_side_effects (std::string_view source, std::set< std::string > &names)
bool effect_text_is_pure (std::string_view text, const std::set< std::string > &unsafe_names, const std::set< std::string > &variable_names, const std::set< std::string > &local_side_effects, const std::map< std::string, FunctionEffectInfo > &functions, std::set< std::string > &visiting)
bool function_is_pure (const std::string &name, const std::set< std::string > &unsafe_names, const std::map< std::string, FunctionEffectInfo > &functions, std::set< std::string > &visiting)
bool validate_transition_effects (const Prepared &prepared, std::string_view source, std::vector< Diagnostic > &diagnostics)
Prepared prepare (std::string_view source, const CompileOptions &options)
std::string render (const Prepared &prepared, std::size_t selected_network, RegionKind kind, std::size_t selected_item)
Program * select_program (Program &root, std::string_view name)
const VarInfo * find_var (const Program &program, std::string_view lower)

枚举类型说明

◆ RegionKind

enum class plcopen::core::st::sfc_detail::RegionKind : std::uint8_t
strong
枚举值
none 
transition 
action 

在文件 sfc.h 第 1130 行定义.

函数说明

◆ add_diag()

void plcopen::core::st::sfc_detail::add_diag ( std::vector< Diagnostic > & diagnostics,
DiagCode code,
std::string_view source,
std::size_t offset )
inline

在文件 sfc.h 第 226 行定义.

◆ collect_declaration_names()

void plcopen::core::st::sfc_detail::collect_declaration_names ( std::string_view block,
std::set< std::string > & names )
inline

在文件 sfc.h 第 876 行定义.

◆ collect_scope_side_effects()

void plcopen::core::st::sfc_detail::collect_scope_side_effects ( std::string_view source,
std::set< std::string > & names )
inline

在文件 sfc.h 第 934 行定义.

◆ collect_scope_variables()

void plcopen::core::st::sfc_detail::collect_scope_variables ( std::string_view source,
std::set< std::string > & names )
inline

在文件 sfc.h 第 925 行定义.

◆ collect_var_blocks()

void plcopen::core::st::sfc_detail::collect_var_blocks ( std::string_view source,
std::string_view word,
std::set< std::string > & names,
bool located_only )
inline

在文件 sfc.h 第 909 行定义.

◆ effect_text_is_pure()

bool plcopen::core::st::sfc_detail::effect_text_is_pure ( std::string_view text,
const std::set< std::string > & unsafe_names,
const std::set< std::string > & variable_names,
const std::set< std::string > & local_side_effects,
const std::map< std::string, FunctionEffectInfo > & functions,
std::set< std::string > & visiting )
inline

在文件 sfc.h 第 974 行定义.

◆ find_code_sequence()

std::size_t plcopen::core::st::sfc_detail::find_code_sequence ( std::string_view source,
std::string_view sequence,
std::size_t from = 0 )
inline

在文件 sfc.h 第 101 行定义.

◆ find_var()

const VarInfo * plcopen::core::st::sfc_detail::find_var ( const Program & program,
std::string_view lower )
inline

在文件 sfc.h 第 1199 行定义.

◆ find_word()

std::size_t plcopen::core::st::sfc_detail::find_word ( std::string_view source,
std::string_view word,
std::size_t from = 0 )
inline

在文件 sfc.h 第 55 行定义.

◆ function_is_pure()

bool plcopen::core::st::sfc_detail::function_is_pure ( const std::string & name,
const std::set< std::string > & unsafe_names,
const std::map< std::string, FunctionEffectInfo > & functions,
std::set< std::string > & visiting )
inline

在文件 sfc.h 第 958 行定义.

◆ ident_char()

bool plcopen::core::st::sfc_detail::ident_char ( char c)
inline

在文件 sfc.h 第 34 行定义.

◆ lower_char()

char plcopen::core::st::sfc_detail::lower_char ( char c)
inline

在文件 sfc.h 第 22 行定义.

◆ lower_copy()

std::string plcopen::core::st::sfc_detail::lower_copy ( std::string_view text)
inline

在文件 sfc.h 第 27 行定义.

◆ parse_action_blocks()

bool plcopen::core::st::sfc_detail::parse_action_blocks ( std::string_view content,
std::size_t absolute,
std::string_view source,
SfcStepDecl & step,
std::vector< Diagnostic > & diagnostics,
std::uint16_t limit )
inline

在文件 sfc.h 第 327 行定义.

◆ parse_duration()

bool plcopen::core::st::sfc_detail::parse_duration ( std::string_view text,
std::int64_t & duration )
inline

在文件 sfc.h 第 279 行定义.

◆ parse_network()

bool plcopen::core::st::sfc_detail::parse_network ( std::string_view source,
std::size_t begin,
std::size_t end,
std::string_view program_lower,
const CompileOptions & options,
NetworkDraft & draft,
std::vector< Diagnostic > & diagnostics )
inline

在文件 sfc.h 第 393 行定义.

◆ parse_qualifier()

bool plcopen::core::st::sfc_detail::parse_qualifier ( std::string_view text,
SfcQualifier & qualifier )
inline

在文件 sfc.h 第 259 行定义.

◆ prepare()

Prepared plcopen::core::st::sfc_detail::prepare ( std::string_view source,
const CompileOptions & options )
inline

在文件 sfc.h 第 1055 行定义.

◆ read_ident()

std::string plcopen::core::st::sfc_detail::read_ident ( std::string_view source,
std::size_t & at )
inline

在文件 sfc.h 第 181 行定义.

◆ render()

std::string plcopen::core::st::sfc_detail::render ( const Prepared & prepared,
std::size_t selected_network,
RegionKind kind,
std::size_t selected_item )
inline

在文件 sfc.h 第 1132 行定义.

◆ select_program()

Program * plcopen::core::st::sfc_detail::select_program ( Program & root,
std::string_view name )
inline

在文件 sfc.h 第 1189 行定义.

◆ skip_space()

std::size_t plcopen::core::st::sfc_detail::skip_space ( std::string_view source,
std::size_t at )
inline

在文件 sfc.h 第 149 行定义.

◆ skip_trivia()

std::size_t plcopen::core::st::sfc_detail::skip_trivia ( std::string_view source,
std::size_t at )
inline

在文件 sfc.h 第 159 行定义.

◆ source_position()

void plcopen::core::st::sfc_detail::source_position ( std::string_view source,
std::size_t offset,
std::int32_t & line,
std::int32_t & column )
inline

在文件 sfc.h 第 201 行定义.

◆ source_span()

void plcopen::core::st::sfc_detail::source_span ( std::string_view source,
std::size_t begin,
std::size_t end,
std::int32_t & line,
std::int32_t & column,
std::int32_t & end_line,
std::int32_t & end_column )
inline

在文件 sfc.h 第 217 行定义.

◆ split_names()

std::vector< std::string > plcopen::core::st::sfc_detail::split_names ( std::string_view text)
inline

在文件 sfc.h 第 236 行定义.

◆ timed()

bool plcopen::core::st::sfc_detail::timed ( SfcQualifier qualifier)
inline

在文件 sfc.h 第 272 行定义.

◆ trim()

std::string plcopen::core::st::sfc_detail::trim ( std::string_view text)
inline

在文件 sfc.h 第 189 行定义.

◆ validate_graph()

bool plcopen::core::st::sfc_detail::validate_graph ( NetworkDraft & draft,
std::string_view source,
std::vector< Diagnostic > & diagnostics )
inline

在文件 sfc.h 第 560 行定义.

◆ validate_transition_effects()

bool plcopen::core::st::sfc_detail::validate_transition_effects ( const Prepared & prepared,
std::string_view source,
std::vector< Diagnostic > & diagnostics )
inline

在文件 sfc.h 第 1009 行定义.

◆ word_at()

bool plcopen::core::st::sfc_detail::word_at ( std::string_view source,
std::size_t at,
std::string_view word )
inline

在文件 sfc.h 第 40 行定义.