#include "parser_internal.h" static HParseResult* parse_unimplemented(void* env, HParseState *state) { (void) env; (void) state; static HParsedToken token = { .token_type = TT_ERR }; static HParseResult result = { .ast = &token }; return &result; } static HCFChoice* desugar_unimplemented(HAllocator *mm__, HCFStack *stk__, void *env) { assert_message(0, "'h_unimplemented' is not context-free, can't be desugared"); return NULL; } static const HParserVtable unimplemented_vt = { .parse = parse_unimplemented, .isValidRegular = h_false, .isValidCF = h_false, .desugar = desugar_unimplemented, .compile_to_rvm = h_not_regular, }; static HParser unimplemented = { .vtable = &unimplemented_vt, .env = NULL }; const HParser* h_unimplemented() { return &unimplemented; } const HParser* h_unimplemented__m(HAllocator* mm__) { return &unimplemented; }