Property | Type | Description | |
---|---|---|---|
ExtensionMatches | bool | ||
InitRegisteredLanguages | IParsingService>.Map | ||
Single | LNode |
Method | Description | |
---|---|---|
GetServiceForFileName ( string filename ) : IParsingService |
Finds the language service associated with the longest matching registered file extension. Returns null if there is no registered language service for the filename's extension. |
|
Parse ( this parser, Stream stream, string fileName, |
Parses a Stream.
|
|
Parse ( this parser, UString input, IMessageSink msgs = null, |
Parses a string by invoking IParsingService.Parse(ICharSource, string, IMessageSink, ParsingMode, bool) using an empty string as the file name.
|
|
ParseFile ( this parser, string fileName, IMessageSink msgs = null, |
Opens the specified file and parses it.
|
|
ParseSingle ( this parser, ICharSource text, string fileName, IMessageSink msgs = null, |
Parses a string and expects exactly one output.
|
|
ParseSingle ( this parser, UString expr, IMessageSink msgs = null, |
Parses a string and expects exactly one output.
|
|
PushCurrent ( IParsingService newValue ) : PushedCurrent |
Sets the current language service, returning a value suitable for use in a C# using statement, which will restore the old service.
|
|
Register ( IParsingService service, IEnumerable |
Registers a parsing service. This method does not replace existing registrations. |
|
SetDefault ( IParsingService newValue ) : SavedValue |
||
Tokenize ( this parser, Stream stream, string fileName, IMessageSink msgs = null ) : ILexer |
Parses a Stream.
|
|
Tokenize ( this parser, UString input, IMessageSink msgs = null ) : ILexer |
Parses a string by invoking IParsingService.Tokenize(ICharSource, string, IMessageSink) using an empty string as the file name.
|
|
TokenizeFile ( this parser, string fileName, IMessageSink msgs = null ) : ILexer |
Opens the specified file and tokenizes it.
|
|
Unregister ( IParsingService service, IEnumerable |
Unregisters a language service. The service for a file extension is not removed unless the given service reference is equal to the registered service. |
Method | Description | |
---|---|---|
ExtensionMatches ( string ext, string fn ) : bool | ||
InitRegisteredLanguages ( ) : IParsingService>.Map |
||
Single ( IListSource |
public static GetServiceForFileName ( string filename ) : IParsingService | ||
filename | string | |
return | IParsingService |
public static Parse ( this parser, Stream stream, string fileName, |
||
parser | this | |
stream | Stream | |
fileName | string | |
inputType | ||
msgs | IMessageSink | |
preserveComments | bool | |
return | IListSource |
public static Parse ( this parser, UString input, IMessageSink msgs = null, |
||
parser | this | |
input | UString | |
msgs | IMessageSink | |
inputType | ||
preserveComments | bool | |
return | IListSource |
public static ParseFile ( this parser, string fileName, IMessageSink msgs = null, |
||
parser | this | |
fileName | string | |
msgs | IMessageSink | |
inputType | ||
preserveComments | bool | |
return | IListSource |
public static ParseSingle ( this parser, ICharSource text, string fileName, IMessageSink msgs = null, |
||
parser | this | |
text | ICharSource | |
fileName | string | |
msgs | IMessageSink | |
inputType | ||
preserveComments | bool | |
return | LNode |
public static ParseSingle ( this parser, UString expr, IMessageSink msgs = null, |
||
parser | this | |
expr | UString | |
msgs | IMessageSink | |
inputType | ||
preserveComments | bool | |
return | LNode |
public static PushCurrent ( IParsingService newValue ) : PushedCurrent | ||
newValue | IParsingService | new value of Current |
return | PushedCurrent |
public static Register ( IParsingService service, IEnumerable |
||
service | IParsingService | Service to register. |
fileExtensions | IEnumerable |
File extensions affected (null to use the service's own list) |
return | int |
public static SetDefault ( IParsingService newValue ) : SavedValue |
||
newValue | IParsingService | |
return | SavedValue |
public static Tokenize ( this parser, Stream stream, string fileName, IMessageSink msgs = null ) : ILexer |
||
parser | this | |
stream | Stream | |
fileName | string | |
msgs | IMessageSink | |
return | ILexer |
public static Tokenize ( this parser, UString input, IMessageSink msgs = null ) : ILexer |
||
parser | this | |
input | UString | |
msgs | IMessageSink | |
return | ILexer |
public static TokenizeFile ( this parser, string fileName, IMessageSink msgs = null ) : ILexer |
||
parser | this | |
fileName | string | |
msgs | IMessageSink | |
return | ILexer |
public static Unregister ( IParsingService service, IEnumerable |
||
service | IParsingService | Service to unregister |
fileExtensions | IEnumerable |
File extensions affected (null to use the service's own list) |
return | int |