The project can be found at Savannah:
http://savannah.nongnu.org/projects/afppowertools
Dowload and uncompress the tarball. You can also get the files via anonymous cvs.
You must have a working Perl installation (at least 5.005). In addition, the following Perl packages are required:
Encode and Encode::EBCDIC (standard modules since...)
YAML
The following procedure is written for Unix-like systems. You may need to adapt it on other platforms.
The YAML files (AFP grammar and templates) are under the yaml_files directory. Copy them to your system. The default location is /usr/share/afppowertools. You must end up with the following files
/usr/share/afppowertools /usr/share/afppowertools/samples /usr/share/afppowertools/templates /usr/share/afppowertools/templates/afp_templates.yml /usr/share/afppowertools/grammar /usr/share/afppowertools/grammar/afp_objects.yml /usr/share/afppowertools/grammar/afp_triplets.yml /usr/share/afppowertools/grammar/afp_metas.yml /usr/share/afppowertools/grammar/afp_states.yml /usr/share/afppowertools/grammar/afp_ptx_css.yml /usr/share/afppowertools/grammar/afp_structured_fields.yml
If you choose another location, you will need to edit AFP/PowerTools/Grammar.pm to point to that location.
I haven't provided any AFP samples, but it's a good idea to place some small AFP files in /usr/share/afppowertools/samples/ and test your scripts against them each time you make a modification.
Follow the usual procedure:
perl Makefile.PL make make test (su) make install