NAME

PFT::Map::Resolver - Resolve symbols in PFT Entries

SYNOPSIS

use PFT::Map::Resolver 'resolve';

die unless $map->isa('PFT::Map');
die unless $node->isa('PFT::Map::Node');
die unless $sym->isa('PFT::Text::Symbol');

my $result = resolve($map, $node, $sym);

DESCRIPTION

This module only exports one function, named resolve.

The function resolves a symbol retrieved from the text of a PFT::Map::Node. The returned value will be one of the following:

A node (i.e. a PFT::Map::Node instance);
A string (e.g. http://manpages.org);
The undef value (meaning: failed resolution).