A.12 library(dcg/basics): Various general DCG utilities
All
Application
Manual
Name
Summary
Help
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)
).
[det]
xinteger
(
+Integer
)
//
[semidet]
xinteger
(
-Integer
)
//
Generate or extract an integer from a sequence of hexadecimal digits. Hexadecimal characters include both uppercase (A-F) and lowercase (a-f) letters. The value may be preceded by a sign (+/-)