Creates a TParser class instance.
constructor Create(Stream: TStream; AOnError: TParserErrorEvent = nil);
__fastcall TParser(TStream Stream, TParserErrorEvent AOnError = nil);
Call Create to instantiate a TParser object at runtime.
The file to be parsed is defined by Stream. AOnError optionally defines an object method to be called when a parsing error is encountered. After this method returns, an Exception is raised anyway.