Prospective question: How can I use LuaTeX to detect the position of a math symbol (unary vs. binary, after/before parantheses) in order to put a custom amount of spacing around it?
Essentially, this question along with this one showed the importance of writing something akin to your own parser to allow dynamic spacing (i.e. dynamic '\medmuskip') around operators. I found out that someone else asked a similar question a while back: Using operator spacing to indicate precedence
I'd like to figure out how to write such a parser, using LuaTeX.
Suspected issue with the question: it requires the answerer to do a lot of work/shows that I didn't do enough of my own research, because one could argue that I could probably figure out the answer if I spent enough time reading docs etc.? Am I just being too lazy?