Initialize a parser.
This function creates a new parser object.
1 if the function succeeded, 0 on error.