create a syntax_tree class with an analyze method which always throws
analyze returns a pointer to the root node