Adam D. Ruppe wrote:
What if there was some magic defined at the top of the file or something, that could be pulled out without parsing the whole thing?pragma(DEFINE_BINARY_OPERATOR, "^^"); Then, later in that module, and any that import it, you'd treat the ^^ as a user defined operator token.
Still mixing up lexing, parsing, and semantic analysis. I know it's tempting, but it only leads to madness.