SyntaxLanguageParsingExtensions Class
Contains parsing-related extension methods that make it easier to work with ISyntaxLanguage objects.
public static class SyntaxLanguageParsingExtensions
- Inheritance:
- object object
Methods
Parse(ISyntaxLanguage, string)
Parses text using the specified language's IParser service and returns the IParseData result.
public static IParseData Parse(this ISyntaxLanguage language, string text)
Parameter | Type | Description |
---|---|---|
language | ISyntaxLanguage | The ISyntaxLanguage to examine for a parser. |
text | string | The text to parse. |
Returns
- IParseData:
The IParseData returned by the parser.
Remarks
This method parses text directly in the calling thread.