Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "dcgutils"

Title:DCG related utilities
Rating:Not rated. Create the first rating!
Latest version:1.1.0
SHA1 sum:95202cf9599d1ac8fc3ac5ffe0f84c91f55f0a6f
Author:Samer Abdallah <s.abdallah@ucl.ac.uk>
Download URL:https://raw.githubusercontent.com/samer--/prolog/master/dcgutils/release/dcgutils-1.1.0.tgz

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.0.10c2c71f5d5dc634b2063744131522ac18de306981https://github.com/samer--/prolog/raw/master/dcgutils/release/dcgutils-0.0.1.tgz
0.0.242332f6d6db397bbb2f7bff02807cc8fb082f2771https://github.com/samer--/prolog/raw/master/dcgutils/release/dcgutils-0.0.2.tgz
0.0.38881753ecb8ce7aaaa34210367c06bf371f6618f3https://github.com/samer--/prolog/raw/master/dcgutils/release/dcgutils-0.0.3.tgz
0.0.4b8bbdb58b826bed78e09a0c21585ae88efe1b2a62https://github.com/samer--/prolog/raw/master/dcgutils/release/dcgutils-0.0.4.tgz
0.0.5b5288851159f8fa7aa12b679cdb45258a9926c074https://github.com/samer--/prolog/raw/master/dcgutils/release/dcgutils-0.0.5.tgz
0.0.6e94f874fc114070e766ab4f0e4b64cac9a643e9e1https://github.com/samer--/prolog/raw/master/dcgutils/release/dcgutils-0.0.6.tgz
0.0.8b457440a5f691e7298c91cdfd51fc798d48ffa903https://raw.githubusercontent.com/samer--/prolog/master/dcgutils/release/dcgutils-0.0.8.tgz
0.0.94fb7a19d37b7ec42716c81b523bac5afbb33d05536https://raw.githubusercontent.com/samer--/prolog/master/dcgutils/release/dcgutils-0.0.9.tgz
1.0.7785e56a71d0560b95f9031822bd1587cb9ab163314https://raw.githubusercontent.com/samer--/prolog/master/dcgutils/release/dcgutils-1.0.7.tgz
1.1.095202cf9599d1ac8fc3ac5ffe0f84c91f55f0a6f3https://raw.githubusercontent.com/samer--/prolog/master/dcgutils/release/dcgutils-1.1.0.tgz

This package provides DCG related utilities. It is organised into several modules:

  • library(dcg_core)
    Provides predicates which can be used in DCGs where the threaded state variable can be of any type, not just lists of terminals as with applications to grammars in the linguistic sense.
  • library(dcg_codes)
    Utilities for DCGs over sequences of character codes, ie, grammars in the linguistic sense. Note that only some of these can be used for both parsing and generation. The rules for writing Prolog values of various types can only be used for generation.
  • library(dcg_macros)
    Provides goal expansions for some of the mapping predicates in library(dcg_core), similar to those in library(apply_macros).
  • library(dcg_progress)
    Sequencing predicates that show progress information, for slow-running processes on sequences.
  • library(dcg_pair) Operators for working with DCGs over pair states.
  • library(dcg_shell)
    Provides a top-level read-eval-print loop similar to the Prolog top-level, but for running DCG goals and managing the current 'state'.
  • library(snobol) A collection of SNOBOL inspired pattern matching predicates.

Prerequisites

SWI Prolog version at least 7.1.18 to get call_dcg/3.

Simple usage

Planned enhancements

Contents of pack "dcgutils"

Pack contains 11 files holding a total of 89.0K bytes.