Checkpatch and translation cleanup of parser

Change token names to english.  Reformat parser/lexer files to
checkpatch style.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add new config parse tree node definitions

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Rewrite bison/flex parser combo

Lots of changes at one go:

* parser is reentrant
* rework of include file handling
* rework of output to use new data structures
* Cleanups of mem leaks, yacc rules.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Wire up config parsing to new parser APIs

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Rework parse tree printing and free to use new data structures

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Rework old config lookup functions

Move to new data structures.  These functions will be in place until
various config processing modules are changed to the new api.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Remove obsolete config file parsing code and references

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add glist_for_each_next functions

Used to rescan partial lists

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add new config parse tree to runtime config struct infrastructure

This is table driven semantic and validation logic.  The table is a
mapping between the parse tree nodes and the structure members.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Rework nfs_read_core_conf to use new config infrastructure

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Remove static initialization for nfs_core

We don't need this anymore because new infrastructure sets defaults

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Improve flex scanning

* %include now tolerates quoted and unquoted filenames.

* relative pathnames in %include match initial config file dir

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Extend config parsing

* add enum, path and unique (only once) param processing

* Do init pass for block before lookup.  Missing block fallback to defaults

* remove redundant arg in parse call

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Convert allocated char arrays to char * in krb5 config

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Rework krb5 params to new config infrastructure

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Remove static initialization for krb5 params

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Rework ip name cache params to new config infrastructure

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Remove static initialization for ip name params

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Rework nfsv4 params to new config infrastructure

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Remove nfsv4 static initialization

Signed-off-by: Jim Lieb <jlieb@panasas.com>