On Thu, Nov 19, 2009 at 01:26:41PM -0800, Walter Bright wrote: > Unless such have a unique grammar that can be lexed and parsed: > > a :string: b > > where string is the user defined name, so you can do things like: > > a :^^: b
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. -- Adam D. Ruppe http://arsdnet.net