IParser Interface
Provides the base requirements of a parser (syntax/semantic analyzer) for a language.
public interface IParser : IKeyedObject
Remarks
This interface type can be registered with an ISyntaxLanguage using the RegisterService(Object, Object) method. Once an object that implements this interface is registered with the language for this interface type, its features can be used by the language.
Methods
Parse(IParseRequest)
Performs a parsing operation using the parameters specified in the supplied IParseRequest and returns the resulting parse data.
IParseData Parse(IParseRequest request)
Parameter | Type | Description |
---|---|---|
request | IParseRequest | The IParseRequest that contains data about the requested parsing operation. |
Returns
- IParseData:
An IParseData that is the result of the parsing operation.
Remarks
A IParseRequestDispatcher typically calls this method when a queued parse request is ready to be processed.