Edge case of parenthesis
wysohn opened this issue ยท 0 comments
When lexer performs lexical analysis, there can be two case of parenthesis:
-
The regular parenthesis that can be typed using keyboard
-
Parenthesis that can be copied directly from texts, yet it's not the same as the typed parenthesis (discord chat for example)
The second case is not accepted and throws "Unrecognizable character" Exception, yet since it's like the only case where ambiguous parenthesis can be used, it would be convenient to support such parenthesis.
Possible candidates can be found here: https://stackoverflow.com/questions/13535172/list-of-all-unicodes-open-close-brackets
Implementing this, copying the code from text will be less troublesome.
Note: Though, we only support the unicode characters which are part of UTF-8, and if it's not part of UTF-8, throw the exception as before.