Did you know ... | Search Documentation: |
Pack rtg -- README.md |
RTG is BNF like syntax checker macros of Regular Tree Grammar for prolog complex term.
:- 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.
This package requires Swi-Prolog 7.x.
?- pack_install(rtg).
Please send bug reports/feature request through the GitHub project page.
The MIT License. See LICENSE file.