MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / ParseState

Class ParseState

extlibs/catch/include/catch/catch.hpp:8727–8741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8725 };
8726
8727 class ParseState {
8728 public:
8729
8730 ParseState( ParseResultType type, TokenStream const &remainingTokens )
8731 : m_type(type),
8732 m_remainingTokens( remainingTokens )
8733 {}
8734
8735 auto type() const -> ParseResultType { return m_type; }
8736 auto remainingTokens() const -> TokenStream { return m_remainingTokens; }
8737
8738 private:
8739 ParseResultType m_type;
8740 TokenStream m_remainingTokens;
8741 };
8742
8743 using Result = BasicResult<void>;
8744 using ParserResult = BasicResult<ParseResultType>;

Callers 4

parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected