fix implicit conversion from shared_ptr to bool

C++11 does not approve the implicit conversion, see http://stackoverflow.com/questions/7580009/gcc-error-cannot-convert-const-shared-ptr-to-bool-in-return
fix implicit conversion from shared_ptr to bool

C++11 does not approve the implicit conversion, see http://stackoverflow.com/questions/7580009/gcc-error-cannot-convert-const-shared-ptr-to-bool-in-return
Merge pull request #34 from tjadevries/master

Fix implicit conversion from shared_ptr to bool
scripting: fixup parsing of mixed program/function and statement scripts.

This patch allows to query the programgraphparser if it has seen any valid input at all.
Also the commonparser was slightly rewritten for parsing identifiers. Some lexeme_d
directives were ignored because they were stored in a rule_t instead of a lexeme_rule_t

Signed-off-by: Peter Soetens <peter@thesourceworks.com>