Places
Home
Graphs
Prefixes
Admin
Users
Settings
Plugins
Statistics
CPACK
Home
List packs
Submit pack
Repository
Load local file
Load from HTTP
Load from library
Remove triples
Clear repository
Query
YASGUI SPARQL Editor
Simple Form
SWISH Prolog shell
Help
Documentation
Tutorial
Roadmap
HTTP Services
Login
A.13 library(dcg/high_order): High order grammar operations
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
The SWI-Prolog library
library(dcg/high_order): High order grammar operations
sequence//2
sequence//3
sequence//5
optional//2
foreach//2
foreach//3
Packages
Availability:
:- use_module(
library(dcg/high_order)
).
[nondet]
sequence
(
:Element, :Sep, ?List
)
//
Match or generate a sequence of
Element
where each pair of elements is separated by
Sep
. When
parsing
, a matched
Sep
commits
. The final element is
not
committed. More formally, it matches the following sequence:
Element?, (Sep,Element)*
See also
sequence//5
.
ClioPatria
(version
V3.1.1-51-ga0b30a5
)