Standard extension methods for IParsingService.
|
static SavedValue
< IParsingService > | SetDefault (IParsingService newValue) |
| | Sets the current language service, returning a value suitable for use in a C# using statement, which will restore the old service. More...
|
| |
| static int | Register (IParsingService service, IEnumerable< string >?fileExtensions=null) |
| | Registers a parsing service. More...
|
| |
| static int | Unregister (IParsingService service, IEnumerable< string >?fileExtensions=null) |
| | Unregisters a language service. More...
|
| |
| static IParsingService | GetServiceForFileName (string filename) |
| | Finds the language service associated with the longest matching registered file extension. More...
|
| |
| static PushedCurrent | PushCurrent (IParsingService newValue) |
| | Sets the current language service, returning a value suitable for use in a C# using statement, which will restore the old service. More...
|
| |
| static ILexer< Token > | Tokenize (this IParsingService parser, UString input, IMessageSink?msgs=null) |
| | Parses a string by invoking IParsingService.Tokenize(ICharSource, string, IMessageSink, IParsingOptions) using an empty string as the file name. More...
|
| |
| static ILexer< Token > | Tokenize (this IParsingService parser, ICharSource text, string fileName, IMessageSink?msgs=null) |
| | Parses a string by invoking IParsingService.Tokenize(ICharSource, string, IMessageSink, IParsingOptions) using default options. More...
|
| |
| static IListSource< LNode > | Parse (this IParsingService parser, UString input, IMessageSink?msgs=null, ParsingMode?inputType=null, bool preserveComments=true) |
| | Parses a string by invoking IParsingService.Parse(ICharSource, string, IMessageSink, IParsingOptions) using an empty string as the file name. More...
|
| |
| static IListSource< LNode > | Parse (this IParsingService parser, UString input, IMessageSink?msgs, IParsingOptions?options) |
| | Parses a string by invoking IParsingService.Parse(ICharSource, string, IMessageSink, IParsingOptions) using an empty string as the file name. More...
|
| |
|
static IListSource< LNode > | Parse (this IParsingService parser, ICharSource text, string fileName, IMessageSink?msgs=null, ParsingMode?inputType=null, bool preserveComments=true) |
| |
|
static IListSource< LNode > | Parse (this IParsingService parser, ILexer< Token > input, IMessageSink?msgs=null, ParsingMode?mode=null, bool preserveComments=true) |
| |
|
static IListSource< LNode > | Parse (this IParsingService parser, IListSource< Token > tokens, ISourceFile file, IMessageSink?msgs, ParsingMode?inputType=null) |
| |
|
static LNode | ParseSingle (this IParsingService parser, UString expr, IMessageSink?msgs=null, ParsingMode?inputType=null, bool preserveComments=true) |
| |
| static LNode | ParseSingle (this IParsingService parser, UString expr, IMessageSink?msgs, IParsingOptions?options) |
| | Parses a string and expects exactly one output. More...
|
| |
|
static LNode | ParseSingle (this IParsingService parser, ICharSource text, string fileName, IMessageSink?msgs=null, ParsingMode?inputType=null, bool preserveComments=true) |
| |
| static LNode | ParseSingle (this IParsingService parser, ICharSource text, string fileName, IMessageSink?msgs=null, IParsingOptions?options=null) |
| | Parses a string and expects exactly one output. More...
|
| |
| static IListSource< LNode > | Parse (this IParsingService parser, Stream stream, string fileName, ParsingMode?inputType=null, IMessageSink?msgs=null, bool preserveComments=true) |
| | Parses a Stream. More...
|
| |
| static ILexer< Token > | Tokenize (this IParsingService parser, Stream stream, string fileName, IMessageSink?msgs=null) |
| | Parses a Stream. More...
|
| |
| static IListSource< LNode > | ParseFile (this IParsingService parser, string fileName, IMessageSink?msgs=null, ParsingMode?inputType=null, bool preserveComments=true) |
| | Opens the specified file, parses the entire file, and closes the file. More...
|
| |
| static ILexer< Token > | TokenizeFile (this IParsingService parser, string fileName, IMessageSink?msgs=null) |
| | Opens the specified file and tokenizes it. More...
|
| |