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

Quasi-quotes "raw" string #10

Open
kamahen opened this issue Feb 9, 2022 · 0 comments
Open

Quasi-quotes "raw" string #10

kamahen opened this issue Feb 9, 2022 · 0 comments

Comments

@kamahen
Copy link
Member

kamahen commented Feb 9, 2022

There are various escapes, both in the pattern and the replacement, that use backslash. These need to be doubled with SWI-Prolog, which makes things even more unreadable.

Enhancement suggestion:use quasi quotations, e.g. {|re||a\b|}. Another possibility is to extend Prolog's syntax, allowing for e.g., R"a\b". As a variable cannot be an operator, nor can a string, this is always illegal syntax in ISO Prolog.

See also https://www.swi-prolog.org/pldoc/man?section=charescapes
and current_prolog_flag(character_escapes,Bool).

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

No branches or pull requests

1 participant