MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / LexInfo

Method LexInfo

src/sys/expressionparser.cxx:609–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607// LexInfo
608
609ExpressionParser::LexInfo::LexInfo(const std::string& input, std::string reserved_chars)
610 : reserved_chars(std::move(reserved_chars)) {
611 ss.clear();
612 ss.str(input); // Set the input stream
613 ss.seekg(0, std::ios_base::beg);
614
615 LastChar = static_cast<signed char>(ss.get()); // First char from stream
616 nextToken(); // Get first token
617}
618
619char ExpressionParser::LexInfo::nextToken() {
620 while (isspace(static_cast<unsigned char>(LastChar))) {

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
strMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected