Did you know ...
Search Documentation:
Predicate with_quasi_quotation_input/3
HOME
DOWNLOAD
SWI-Prolog
Sources/building
Docker images
Add-ons
Browse GIT
DOCUMENTATION
Manual
Packages
FAQ
Command line
PlDoc
Bluffers
▶
Prolog syntax
PceEmacs
HTML generation
License
Publications
Rev 7 Extensions
TUTORIALS
Beginner
▶
Getting started
Learn Prolog Now!
Simply Logical
Debugger
Development tools
Advanced
▶
Modules
Grammars (DCGs)
clp(fd)
Printing messages
PlDoc
Web applications
▶
Web applications
Let's Encrypt!
Pengines
Semantic web
▶
ClioPatria
RDF namespaces
Graphics
▶
XPCE
GUI options
Machine learning
▶
Probabilistic Logic Programming
External collections
▶
Meta level tutorials
For packagers
▶
Linux packages
COMMUNITY
Forum & mailing list
Blog
News
Report a bug
Submit a patch
Submit an add-on
Roadmap (on GitHub)
External links
Contributing
Code of Conduct
Contributors
SWI-Prolog items
COMMERCIAL
WIKI
Login
View changes
Sandbox
Wiki help
All tags
Documentation
Reference manual
The SWI-Prolog library
library(quasi_quotations): Define Quasi Quotation syntax
with_quasi_quotation_input/3
phrase_from_quasi_quotation/2
quasi_quotation_syntax/1
quasi_quotation_syntax_error/1
Packages
Availability:
:- use_module(
library(quasi_quotations)
).
(can be autoloaded)
[det]
with_quasi_quotation_input
(
+Content, -Stream, :Goal
)
Process the quasi-quoted
Content
using
Stream
parsed by
Goal
.
Stream
is a temporary stream with the following properties:
Its initial
position
represents the position of the start of the quoted material.
It is a text stream, using
utf8
encoding
.
It allows for repositioning
It will be closed after
Goal
completes.
Goal
is executed as
once(Goal)
.
Goal
must succeed. Failure or exceptions from
Goal
are interpreted as syntax errors.
See also
phrase_from_quasi_quotation/2
can be used to process a quotation using a grammar.