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

Class ParseState

unittests/catch.hpp:5822–5836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5820 };
5821
5822 class ParseState {
5823 public:
5824
5825 ParseState( ParseResultType type, TokenStream const &remainingTokens )
5826 : m_type(type),
5827 m_remainingTokens( remainingTokens )
5828 {}
5829
5830 auto type() const -> ParseResultType { return m_type; }
5831 auto remainingTokens() const -> TokenStream { return m_remainingTokens; }
5832
5833 private:
5834 ParseResultType m_type;
5835 TokenStream m_remainingTokens;
5836 };
5837
5838 using Result = BasicResult<void>;
5839 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