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

Package "rtg"

Title:Regular Tree Grammer validator
Rating:Not rated. Create the first rating!
Latest version:0.0.7
SHA1 sum:9574a726b6c91e54d87eb09dc8fd6bc0089aa1b8
Author:Hiroshi Sakurai <sakurai777@gmail.com>
Home page:https://github.com/hsk/rtg
Download URL:https://github.com/hsk/rtg.git

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.0.179846bcc56edbcb9c20d73122089b2911a8a52381https://github.com/hsk/rtg/archive/0.0.1.zip
0.0.2de429e2e97f7c55710544016a80115e7d3aa82a01https://github.com/hsk/rtg/archive/0.0.2.zip
0.0.3d5d2b2079ab80ae15a0c6e5c58192c64ab39efb31https://github.com/hsk/rtg/archive/0.0.3.zip
eb17159f76153c628830a435c62fc0bb3508d1de1https://github.com/hsk/rtg/archive/0.0.3.zip
0.0.45cf4d5ad48d8ff1a9b9db3297368d6660ced325b1https://github.com/hsk/rtg.git
60d9a303149cbf7bf445c45214af7c405e096b941https://github.com/hsk/rtg.git
f54401e2bd150c80ff1f288357d772b729b81c0e1https://github.com/hsk/rtg/archive/0.0.4.zip
0.0.529995539aa62e053189f6a5f3ba26bb6718e7df51https://github.com/hsk/rtg.git
6e286b674feba9a7c0a26e75e6bf9bfc5533422a1https://github.com/hsk/rtg.git
fa6e23316e471b5fd226baf7dea0a44f8a98ea721https://github.com/hsk/rtg/archive/0.0.5.zip
0.0.6e638663e94f191b2f34936df47bf60a8d8c3ed581https://github.com/hsk/rtg.git
0.0.79574a726b6c91e54d87eb09dc8fd6bc0089aa1b822https://github.com/hsk/rtg.git

RTG - Regular Tree Grammer validator

RTG is BNF like syntax checker macros of Regular Tree Grammar for prolog complex term.

Example

:- use_module(library(rtg)).
syntax(integer).
i ::= integer.
e ::= i | e+e | e-e |e*e | e/e.
:- i(1).
:- e(1*2+3/2-1).
:- halt.

Installation

This package requires Swi-Prolog 7.x.

?- pack_install(rtg).

Bug reports/feature requests

Please send bug reports/feature request through the GitHub project page.

Changelog

  • 2018-07-17 0.0.7 added matching tests.
  • 2018-07-17 0.0.6 added list syntax tests
  • 2018-07-16 0.0.5
  • 2018-07-16 0.0.4
  • 2018-07-15 0.0.3
  • 2018-07-15 0.0.2
  • 2018-07-15 0.0.1

License

The MIT License. See LICENSE file.

Contents of pack "rtg"

Pack contains 5 files holding a total of 3.7K bytes.