Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DCG (Definite Clause Grammar syntax) #27

Open
XVilka opened this issue Aug 9, 2019 · 1 comment
Open

Support DCG (Definite Clause Grammar syntax) #27

XVilka opened this issue Aug 9, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@XVilka
Copy link
Contributor

XVilka commented Aug 9, 2019

For easier integration (or porting) with the existing Prolog libraries/programs, since DCG are popular in Prolog world.

number --> digit, number_remaining.
number_remaining --> dot,number_remaining.
number_remaining --> digit,number_remaining.
number_remaining([],[]).
dot -->[0'.].
digit --> [J], {digit_code(J)}.
digit_code(J):- J >= 0'0, J =< 0'9.
@twinters twinters added the enhancement New feature or request label Sep 16, 2019
@vsraptor
Copy link

vsraptor commented Dec 5, 2020

any info on this ?
Is it easy to develop ? OR how you will emulate DCG w/o having the syntax available with pure Problog ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants