NAME
Farly::ASA::TokenPicker - Collects value objects from the parse tree
DESCRIPTION
Farly::ASA::TokenPicker walks a Parse::RecDescent <autotree> parse tree searching for Token value objects. Token objects are recognized by the presence of the '__VALUE__' key (see <autotree>).
When a Token value 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 stored in 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/>.