Implements the Snippet parsing