Liking cljdoc? Tell your friends :D

naga.lang.pabu

Implements Pabu, which is a Prolog-like language for Naga. Parses code and returns Naga rules.

Implements Pabu, which is a Prolog-like language for Naga.
Parses code and returns Naga rules.
raw docstring

Argsclj

source

ast->axiomclj

(ast->axiom {axiom :axiom :as axiom-ast})

Inputs: [{axiom :axiom, :as axiom-ast} :- AxiomAST] Returns: Axiom

Converts the axiom structure returned from the parser

Inputs: [{axiom :axiom, :as axiom-ast} :- AxiomAST]
Returns: Axiom

Converts the axiom structure returned from the parser
sourceraw docstring

ast->ruleclj

(ast->rule {:keys [head body] :as rule-ast})

Inputs: [{:keys [head body], :as rule-ast} :- RuleAST] Returns: Rule

Converts the rule structure returned from the parser

Inputs: [{:keys [head body], :as rule-ast} :- RuleAST]
Returns: Rule

Converts the rule structure returned from the parser
sourceraw docstring

AxiomASTclj

source

ExpressionPredicateclj

source

PatternPredicateclj

source

Predicateclj

source

read-strclj

(read-str s)

Inputs: [s :- s/Str] Returns: {:rules [Rule], :axioms [Axiom]}

Reads a string

Inputs: [s :- s/Str]
Returns: {:rules [Rule], :axioms [Axiom]}

Reads a string
sourceraw docstring

read-streamclj

(read-stream in)

Inputs: [in :- InputStream] Returns: Program

Reads a input stream

Inputs: [in :- InputStream]
Returns: Program

Reads a input stream
sourceraw docstring

RuleASTclj

source

structureclj

(structure ast-data)

Converts the AST for a structure into either a seq of triplets or predicates. Types are intentionally loose, since it's either a pair or a list.

Converts the AST for a structure into either a seq of triplets or predicates.
Types are intentionally loose, since it's either a pair or a list.
sourceraw docstring

tripletclj

(triplet raw)

Inputs: [raw] Returns: Triple

Converts raw parsed predicate information into a single triple

Inputs: [raw]
Returns: Triple

Converts raw parsed predicate information into a single triple
sourceraw docstring

tripletsclj

(triplets [property [s o :as args]])

Inputs: [[property [s o :as args]]] Returns: [Triple]

Converts raw parsed predicate information into a seq of triples

Inputs: [[property [s o :as args]]]
Returns: [Triple]

Converts raw parsed predicate information into a seq of triples
sourceraw docstring

VKclj

Either a Variable or a Keyword

Either a Variable or a Keyword
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close