-
Notifications
You must be signed in to change notification settings - Fork 134
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
¤ cannot be used #1515
Comments
On the other hand, the toplevel reports the character when asked for it in a different way: ?- char_code(C, 164). C = '¤'. This means that such answer substitutions currently cannot be pasted back as queries. |
We need to identify that class of characters which can be written directly with single or double quotes.
which is what is used to define those characters that can appear in such quoted context. So extended characters (6.5) that look like characters may be added to |
¬ has the same problem (see also #1591): ?- char_code(C, 172). C = '¬'. ?- C = '¬'. error(syntax_error(invalid_single_quoted_character),read_term/3). |
It is a possibility to do so. And for alphanumeric chars Scryer already does this. The question here is rather whether or not it makes sense to extend The other question is which non-terminals may be extended. In 6.5 Things would get even more complex, when also |
This works perfectly now, thank you a lot! ?- X = ¤. X = ¤. |
I am reopening this because I think it is expected (#1749 (comment)) that the symbol cannot be part of a letter token: ?- X = ¤a. X = ¤a, unexpected. |
Now it seems to work really perfectly, thank you a lot! |
I'm afraid there is a regression on the latest master (v0.9.4-165-g12a61cdf): ?- X = ¤.
error(syntax_error(unexpected_char),read_term/3:0).
?- Also might be the cause of #2547 |
I am reopening this issue because the original issue is now present again, for unclear reasons. At the very least, it requires a conscious decision on how to resolve it. |
Currently, I get:
Is there anything special about this character? Why cannot it be used like other symbols/currency characters such as
$
?For comparison, I get with GNU Prolog:
The text was updated successfully, but these errors were encountered: