Trigraphs can be supported with the simple expedient of putting a filter in front of the compiler that converts the trigraph sequences to the corresponding character. It doesn't have to be in the compiler itself.
In fact, trigraphs were designed to operate this way.
That is, until the addition of raw string literals broke that.
In fact, trigraphs were designed to operate this way.
That is, until the addition of raw string literals broke that.