Simplify grammar
Fixed Nova changes not triggering a rebuild of libpromises.

"DEPENDENCIES" alone does not generate a real dependency. You need the
name of the target as well. This used to be in the build file before.
Probably just a copy/paste error from 0605ac54a87caea1e116c049c6e.
classesmatching.cf failed on Tuesdays. Fix it
Merge pull request #494 from kacfengine/nova-build-triggering

Fixed Nova changes not triggering a rebuild of libpromises.
Remove global ERRORCOUNT, move to ParserState, return NULL Policy on failed parse.

Close #2416, #2417
Only flatten promisee list if it is resolved to a list

Close #2422
Add a few parser unit tests

If you make changes to the parser, please add a unit test following
this simple template.
Destroy incomplete policy DOM on parsing errors
Added ParrserDebug Statement, this could be depended on another cf-promises flag, but for now it is -d
Substitute constant argument into function
Move LogHashChange to cf-agent
Document format of the hashes database key
Move function prototype to proper header
Move promise-specific cleanup from cf-agent.c
De-Attribute-ify SelectLeaf
De-cfPS-ify SaveItemListCallback
de-cfPS-ify SaveXmlCallback
De-EvalContext-ify SaveAsFile
error_count is not a size of memory block
No need to increment error_count in yyerror, it is done in ParseErrorV