You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)
.The text was updated successfully, but these errors were encountered: