NanoProlog-0.2.3.3: Very small interpreter for a Prolog-like language

Language.Prolog.NanoProlog.NanoProlog

Documentation

newtype Env Source

Constructors

Env 

Instances

Show Env

printEnv prints a single solution, showing only the variables that were introduced in the original goal

data Result Source

Constructors

Done Env 
ApplyRules [(Tag, Rule, Result)] 

data Rule Source

Constructors

Term :<-: [Term] 

class Subst t whereSource

Methods

subst :: Env -> t -> tSource

Instances

class Taggable a whereSource

Methods

tag :: Tag -> a -> aSource

Instances

type Proofs = [(Tag, Rule)]Source

startParse :: (ListLike s b, Show b) => P (Str b s LineColPos) a -> s -> (a, [Error LineColPos])Source