NAME

Farly::ASA::TokenPicker - Collects Tokens from a parse tree, storing them in a Object::KVC::Hash object

DESCRIPTION

Farly::ASA::TokenPicker walks a Parse::RecDescent <autotree> parse tree searching for Token objects. Token objects are recognized by the presence of the '__VALUE__' key (see <autotree>).

When a Token object is found the parser rule name associated with that token is used to look up a key. The returned key and token value are then put into an Object::KVC::Hash object.

A new Object::KVC::Hash object is created and added to an Object::KVC::List every time the TokenPicker visit method is called (i.e. for every line of configuration).

Farly::ASA::TokenPicker dies on error.

Farly::ASA::TokenPicker is used by the Farly::ASA::Builder only.

COPYRIGHT AND LICENCE

Farly::ASA::TokenPicker Copyright (C) 2012 Trystan Johnson

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.