Open grencez opened 1 year ago
Grammar restrictions should apply to individual lines of character dialogue because we impose a chatbot format, which is kinda fundamental to the project.
llama.cpp has grammar restrictions now. It's probably better than anything I could do initially. Will give it a look.
Need to get better sxpb parsing first so the grammar can be configured! It's in flight.
A parsing expression grammar might be possible. We'd have to track a frontier, so it's best to forbid recursion in the first position.