SWI-Prolog Did You Know
Did you know?
SWI-Prolog supports the full Unicode character set 😀
Search Documentation:
Predicate phrase_from_quasi_quotation/2
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]
phrase_from_quasi_quotation
(
:Grammar, +Content
)
Process the quasi quotation using the DCG
Grammar
. Failure of the grammar is interpreted as a syntax error.
See also
with_quasi_quotation_input/3
for processing quotations from stream.