PrologTermParserVisitor
Converts parser concrete-syntax nodes into tuProlog Terms allocated in scope.
Reusing one visitor for a complete term or clause preserves variable identity within that parse. Theory parsing instead creates a fresh visitor and Scope for each clause, as Prolog variables are local to a clause. Parentheses and source trivia affect the concrete syntax tree but not the resulting domain term.
See also
Properties
Functions
Converts a non-empty brace block to the corresponding tuProlog block term.
Converts a numeric node while preserving its sign, radix, and exact digit spelling.
Converts an operator application to a structure named after its resolved operator.
Converts a structure and recursively converts its arguments.
Rejects direct theory conversion because this visitor produces one Term at a time.
Converts named variables through scope and creates a fresh variable for each anonymous use.