-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Pull in updated version of SANY to support Unicode specs #2995
Comments
Oh, we have a bunch of those :) apalache/tla-io/src/main/scala/at/forsyte/apalache/tla/imp/OpApplTranslator.scala Lines 627 to 667 in 34bdc61
|
Do you know how stable this table of constants going to be? It's autogenerated. I assume that the names will not change most likely? |
@ahelwer do I understand it right that the unicode operators have their own names such as |
It has been stable for about 10 years as far as I know, no plans to change it in the future.
No, they do not. They are all wrapped up into the same |
If you want a quick shortcut you could also just add all the different text-based unicode variants, defined here: https://github.com/tlaplus/tlaplus-standard/blob/main/unicode/tla-unicode.csv Although this might make it more work if any of these mappings are ever changed. |
Now that SANY supports parsing Unicode TLA+ specs, it should be fairly straightforward to support Unicode here by updating to a newer version of SANY. Possible bugs include if your translation code looks at actual string representation (for example,
"\\E"
instead ofTLAplusParserConstants.EXISTS
) which was the case in SANY itself.The text was updated successfully, but these errors were encountered: