Enhanced C#
Language of your choice: library documentation
|
This interface for parsing text into objects is implemented by LiteralHandlerTable. More...
This interface for parsing text into objects is implemented by LiteralHandlerTable.
Public Member Functions | |
bool | CanParse (Symbol typeMarker) |
Returns true if this object has a parser for the specified type marker. More... | |
Either< object, ILogMessage > | TryParse (UString textValue, Symbol typeMarker) |
Attempts to parse a string with a given type marker. More... | |
bool Loyc.Syntax.ILiteralParser.CanParse | ( | Symbol | typeMarker | ) |
Returns true if this object has a parser for the specified type marker.
Implemented in Loyc.Syntax.LiteralHandlerTable.
Either<object, ILogMessage> Loyc.Syntax.ILiteralParser.TryParse | ( | UString | textValue, |
Symbol | typeMarker | ||
) |
Attempts to parse a string with a given type marker.
textValue | A text value that has already been preprocessed to remove escape sequences. |
typeMarker | Indicates the type of the value. There is a standard set of type markers; please see the documention of StandardLiteralHandlers. |
If the problem is that the type marker doesn't have an associated parser, the returned LogMessage should not have a Severity of Error; LiteralHandlerTable uses Severity.Note for this.
Implemented in Loyc.Syntax.LiteralHandlerTable.
Referenced by Loyc.Syntax.LNodeFactory.Literal().