-
Notifications
You must be signed in to change notification settings - Fork 165
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
support for utf-8 / unicode characters #249
Comments
EAdd. Exp ::= Exp "⌽" Exp1 ; |
Keywords and operators in a LBNF grammar can now contain unicode characters. Works for Haskell, Java, Latex... Broken for C, C++, Ocaml [NEEDS WORK]
By simply allowing unicode in the generated Haskell lexer, I managed to enable this feature for LBNF and some backends, including Haskell and Java. |
Thanks for this Andreas. I will try again ;-D |
To be precise, I only changed in the generated
to
However, I did not do anything to extend the definitions of capital and lower-case letters to unicode. |
Changing |
Did you mean ?
|
Yes. |
Strange, that seems to contradict the alex documentation at https://www.haskell.org/alex/doc/html/charsets.html :
Or maybe I do not understand it. From my naive point of view Could you provide me with a minimal test case, please? |
Andreas, you are correct. TL;DR [. \n] is a good pattern for ‘any character’ |
@sillydan1: I am closing this, but you are welcome reopen it with a MWE. |
No description provided.
The text was updated successfully, but these errors were encountered: