|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Classes | |
| struct | Parser |
Functions | |
| bool | isBuiltin (const std::string &s) |
| void | printExpr (const ScriptProgram &p, int32_t idx, std::string &out) |
| void | printBlock (const ScriptProgram &p, int32_t begin, int32_t end, std::string &out) |
| void | printStmt (const ScriptProgram &p, int32_t idx, std::string &out) |
Variables | |
| constexpr const char * | kOpenValve = "open_valve" |
| The builtin call names. | |
| constexpr const char * | kCloseValve = "close_valve" |
| constexpr const char * | kDelay = "delay" |
| constexpr const char * | kTransitionTo = "transition_to" |
| constexpr const char * | kPressure = "pressure" |
| constexpr const char * | kElapsed = "elapsed" |
| bool fsw::script::anonymous_namespace{Parser.cpp}::isBuiltin | ( | const std::string & | s | ) |
Definition at line 137 of file Parser.cpp.
References isBuiltin(), kCloseValve, kDelay, kElapsed, kOpenValve, kPressure, and kTransitionTo.
Referenced by isBuiltin(), fsw::script::anonymous_namespace{Parser.cpp}::Parser::parsePrimary(), and fsw::script::anonymous_namespace{Parser.cpp}::Parser::parseSimple().
| void fsw::script::anonymous_namespace{Parser.cpp}::printBlock | ( | const ScriptProgram & | p, |
| int32_t | begin, | ||
| int32_t | end, | ||
| std::string & | out ) |
Definition at line 916 of file Parser.cpp.
References begin(), end(), p, printBlock(), and printStmt().
Referenced by printBlock(), and printStmt().
| void fsw::script::anonymous_namespace{Parser.cpp}::printExpr | ( | const ScriptProgram & | p, |
| int32_t | idx, | ||
| std::string & | out ) |
Definition at line 830 of file Parser.cpp.
References fsw::script::Binary, fsw::script::Elapsed, fsw::script::Expr::kind, fsw::script::Expr::lhs, fsw::script::Number, fsw::script::Expr::number, fsw::script::Expr::op, fsw::script::op_name(), p, fsw::script::Pressure, printExpr(), fsw::script::Expr::rhs, fsw::script::Expr::slug, fsw::script::Unary, fsw::script::Var, and fsw::script::Expr::var.
Referenced by printExpr(), and printStmt().
| void fsw::script::anonymous_namespace{Parser.cpp}::printStmt | ( | const ScriptProgram & | p, |
| int32_t | idx, | ||
| std::string & | out ) |
Definition at line 873 of file Parser.cpp.
References fsw::script::Assign, fsw::script::Stmt::body_begin, fsw::script::Stmt::body_end, fsw::script::CloseValve, fsw::script::Delay, fsw::script::Stmt::else_begin, fsw::script::Stmt::else_end, fsw::script::Stmt::expr, fsw::script::If, fsw::script::Stmt::kind, fsw::script::OpenValve, p, printBlock(), printExpr(), printStmt(), fsw::script::Stmt::slug, fsw::script::TransitionTo, fsw::script::Stmt::var, and fsw::script::While.
Referenced by printBlock(), and printStmt().
|
constexpr |
Definition at line 131 of file Parser.cpp.
Referenced by isBuiltin(), and fsw::script::anonymous_namespace{Parser.cpp}::Parser::parseSimple().
|
constexpr |
Definition at line 132 of file Parser.cpp.
Referenced by isBuiltin(), and fsw::script::anonymous_namespace{Parser.cpp}::Parser::parseSimple().
|
constexpr |
Definition at line 135 of file Parser.cpp.
Referenced by isBuiltin(), fsw::script::anonymous_namespace{Parser.cpp}::Parser::parsePrimary(), and fsw::script::anonymous_namespace{Parser.cpp}::Parser::parseSimple().
|
constexpr |
The builtin call names.
A bare Ident in call position that is not one of these is refused, so a typo becomes an error rather than a silently ignored statement.
Definition at line 130 of file Parser.cpp.
Referenced by isBuiltin(), and fsw::script::anonymous_namespace{Parser.cpp}::Parser::parseSimple().
|
constexpr |
Definition at line 134 of file Parser.cpp.
Referenced by isBuiltin(), fsw::script::anonymous_namespace{Parser.cpp}::Parser::parsePrimary(), and fsw::script::anonymous_namespace{Parser.cpp}::Parser::parseSimple().
|
constexpr |
Definition at line 133 of file Parser.cpp.
Referenced by isBuiltin(), and fsw::script::anonymous_namespace{Parser.cpp}::Parser::parseSimple().