Did you know ...
Search Documentation:
Grammar rule eos//0
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
IRC
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(dcg/basics): Various general DCG utilities
string_without//2
string//1
blanks//0
blank//0
nonblanks//1
nonblank//1
blanks_to_nl//0
whites//0
white//0
alpha_to_lower//1
digits//1
digit//1
integer//1
float//1
number//1
xinteger//1
xdigit//1
xdigits//1
eol//0
eos//0
remainder//1
prolog_var_name//1
csym//1
atom//1
Packages
Availability:
:- use_module(
library(dcg/basics)
).
eos
//
Matches end-of-input. The implementation behaves as the following portable implementation:
eos --> call(eos_). eos_([], []).
To be done
This is a difficult concept and violates the
context free
property of DCGs. Explain the exact problems.