MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / ParseState

Class ParseState

Bcore/src/main/cpp/Dobby/tests/catch.hpp:5621–5637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5619enum class ParseResultType { Matched, NoMatch, ShortCircuitAll, ShortCircuitSame };
5620
5621class ParseState {
5622public:
5623 ParseState(ParseResultType type, TokenStream const &remainingTokens)
5624 : m_type(type), m_remainingTokens(remainingTokens) {
5625 }
5626
5627 auto type() const -> ParseResultType {
5628 return m_type;
5629 }
5630 auto remainingTokens() const -> TokenStream {
5631 return m_remainingTokens;
5632 }
5633
5634private:
5635 ParseResultType m_type;
5636 TokenStream m_remainingTokens;
5637};
5638
5639using Result = BasicResult<void>;
5640using ParserResult = BasicResult<ParseResultType>;

Callers 4

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

Calls

no outgoing calls

Tested by 4

parseMethod · 0.68
parseMethod · 0.68
parseMethod · 0.68
parseMethod · 0.68