ip_grammars(Format) — Logtalk 3.100.1

object

# `ip_grammars(Format)`

IP address grammars.

Availability:
`logtalk_load(grammars(loader))`
Author: Paulo Moura
Version: 0:2:0
Date: 2025-10-06
Compilation flags:
`static, context_switching_calls`
Uses:
number_grammars(Format)
Remarks:
(none)
Inherited public predicates:
(none)

## Public predicates

### `ipv4//1`

Parses an IPv4 network address in the format XXX.XXX.XXX.XXX where each XXX is an octet (i.e., an integer between 0 and 255).

Compilation flags:
`static`
Template:
`ipv4(Octets)`
Mode and number of proofs:
`ipv4(?list(integer))` - `zero_or_one`

### `ipv6//1`

Parses an IPv6 network address in the format XXXX.XXXX.XXXX.XXXX.XXXX.XXXX.XXXX.XXXX where each X is a hexadecimal digit.

Compilation flags:
`static`
Template:
`ipv6(HexDigits)`
Mode and number of proofs:
`ipv6(?list(integer))` - `one`

## Protected predicates

(no local declarations; see entity ancestors if any)

## Private predicates

(no local declarations; see entity ancestors if any)

## Operators

(none)