A.44 library(quasi_quotations): Define Quasi Quotation syntax
All
Application
Manual
Name
Summary
Help
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.