cool hack, ESCAPE ESCAPE ... too much confusion.

On 2/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I don't have access to the code currently, but I believe the trick was
to have the function that lex calls to get its next input character
notice the start of a non-ASCII UTF sequence, read the whole rune,
convert it to \033 followed by the 4 hex digits of the rune's value,
and pass those bytes consecutively to lex.  Then yylex() would do the
reverse translation from escaped hex back to a rune, so yacc's parser
would see full runes.


Reply via email to