Package edu.unc.cs.comp524.parsers.prolog
Package holding prolog-parser code built for Comp 524 taught at the
University of North Carolina Chapel Hill
The gateway should be considered PrologParser, RelationCollectorListener, and Program. Study the sample programs to
see how they can be used together.
Then, write your own programs that consume Program to test for
certain aspects of the program-structure.
-
Interface Summary Interface Description Comment A source-level commentFact The simplest kind ofRelation: a fact.InvocationMatcher A matcher against invocations of rules that knows how to process invocations and createRuleInvocations.Program A prolog program.PrologListener This interface defines a complete listener for a parse tree produced byPrologParser.Relation A prolog relation between arguments.Rule A more complicatedRelationthat has sub-rules (RuleInvocations) on the right-hand-side (Rule.rhs()).RuleInvocation An invocation of some relation; typically found inRule.rhs() -