Skip to content

epost/purescript-datalog-parsers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Supported formats

Syntax flavourconstantsvariablesrulesupport
‘Standard’ datalog (like Prolog)lowercaseuppercase:-getting there
Prologlowercaseuppercase:-
Datalog with ? variablesstart with ?:-
Datomicstart with ?
LogiQL<-

Examples

Syntax example adapted from MITRE datalog:

% facts
parent(john, douglas).
parent(bob, john).
parent(ebbon, bob).

% rules
ancestor(A, B) :-
  parent(A, B).

ancestor(A, B) :-
  parent(A, C),
  D = C,
  ancestor(D, B).

% query
ancestor(A, B)?

About

Parsers for Prolog, Datomic, and various other Datalog varieties.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published