mgood7123
mgood7123
fifo
could this be used to implement a fifo? if so, is this thread-safe or thread-unsafe
when the parser successfully parses a rule then errors parsing another rule due to it not being able to match any rules it should raise an error but it doesnt...
see https://github.com/mgood7123/mpclex#lexer-modes
how would i design the and of a parser combinator so that i do not need to create an infinite number of functions for it
to implement regex lookahead i need to 1. obtain the text captured in `mpc_parens` and `Regex` 2. look for the following at the start of the text: `?!` (negate assertion,...
would it be possible to provide a tutorial of how one might build there own AST generator using ur mpc_ast* functions?
maths.c ``` #include "../mpc.h" #include "../mpc.c" int main(int argc, char **argv) { mpc_parser_t *plus = mpc_new("plus"); mpc_parser_t *star = mpc_new("star"); mpca_lang(MPCA_LANG_PREDICTIVE, "plus : +;" "star : 'a'*;", plus, star, NULL);...
could mpc be used with external lexers (as in an actual proper lexer such as gnu lex/flex), where tokes are fed to the parser, optionally accepting a token type, if...
would it be possible to get it to start with main(void)