Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigraph/digraph sequences are not supported #2

Open
dsamarin opened this issue Oct 7, 2011 · 0 comments
Open

Trigraph/digraph sequences are not supported #2

dsamarin opened this issue Oct 7, 2011 · 0 comments

Comments

@dsamarin
Copy link
Member

dsamarin commented Oct 7, 2011

Tokenizer.prototype.nextch should recognize trigraph sequences and instead return the correct replacement.

Before any other processing takes place, each occurrence of one of the following
sequences of three characters (called trigraph sequences12)) is replaced with the
corresponding single character.

??=  #
??(   [
??/   \
??)   ]
??'   ^
??<   {
??!   |
??>   }
??-   ~

Digraphs are easier to add since the punctuators are constructed automatically as a trie structure and can be added with the add() method of Token.punctuators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant