MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_or

Method lua_or

src/Chain/libraries/glua/lparsercombinator.cpp:895–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

893 }
894
895 ParserBuilder* ParserBuilder::lua_or (ParserFunctor *other1, ParserFunctor *other2,
896 ParserFunctor *other3, ParserFunctor *other4)
897 {
898 if (_result)
899 _result = _ctx-> p_or (_result, other1);
900 else
901 _result = other1;
902 if (other2)
903 _result = _ctx-> p_or (_result, other2);
904 if (other3)
905 _result = _ctx-> p_or (_result, other3);
906 if (other4)
907 _result = _ctx-> p_or (_result, other4);
908 return this;
909 }
910
911 ParseResult FailureParserFunctor::tryParse(Input &input, size_t skip_end_size, bool optional) {
912 _ctx->set_last_match_token(input.read());

Callers

nothing calls this directly

Calls 1

p_orMethod · 0.80

Tested by

no test coverage detected