libfdf parser for ascii and non-ascii files
I am using the libfdf parser to parse text as well as some non-text files. (1) Does libfdf have any development in parsing say binary files or hdf5 files? (2) Can libfdf parse ascii file text if they are read by the command "%include textfile.txt"?
I found libfdf really useful in parsing input files. It's very quick to adapt. However, I needed a feature in which parser can parse through the external file and read the information from that file (ascii or binary). (1) Say for example, instead of writing coordinates by hand in the input file or writing an atomic coordinate block, I should be able to read the .xyz file by a single command like "molecule benzene.xyz" (2) Does libfdf have any development in parsing say binary files or hdf5 files (with predefined rules to look for the information in those files)?
Supporting material: For the topic (1) mentioned above, I wrote the following part:
if (fdf_defined('molecule')) then write(6,*) "molecule block has been defined :: molecule's geometry in angstrom units" molecule_name = fdf_string('molecule', 'h2o.xyz') write(6,*) 'Name of xyz file:', molecule_name ia = 1 do while(fdf_bline(bfdf, pline)) symbol(ia) = fdf_bnames(pline, 1) do i= 1, 3 xa(i,ia) = fdf_breals(pline, i) enddo ia = ia + 1 enddo na = ia - 1 endif