Enhanced C#
Language of your choice: library documentation
Properties | List of all members
Loyc.Syntax.ISerializedLiteral Interface Reference

Represents a serialized text form of a literal value. More...


Source file:
Inheritance diagram for Loyc.Syntax.ISerializedLiteral:
Loyc.Syntax.ILiteralValue Loyc.Syntax.ILNode Loyc.Syntax.LiteralValue Loyc.Syntax.LNode Loyc.Syntax.LNode Loyc.Syntax.CallNode Loyc.Syntax.IdNode Loyc.Syntax.LiteralNode Loyc.Syntax.CallNode Loyc.Syntax.IdNode Loyc.Syntax.LiteralNode

Remarks

Represents a serialized text form of a literal value.

Properties

UString TextValue [get]
 Represents the serialized text of the value. More...
 
Symbol TypeMarker [get]
 Represents the type of the value. More...
 

Property Documentation

◆ TextValue

UString Loyc.Syntax.ISerializedLiteral.TextValue
get

Represents the serialized text of the value.

Typically this will be a parsed form of the string; for example in LES3, if the TextValue is C:\Users, the raw text may be C:\\Users which was parsed so that the double backslash became a single backslash.

◆ TypeMarker

Symbol Loyc.Syntax.ISerializedLiteral.TypeMarker
get

Represents the type of the value.

The Type Marker indicates not just the type but also the syntax of the TextValue. If the syntax of a TextValue is not compatible with the syntax used in LES, it should not use the same type marker as used in LES.

The TypeMarker can be null if this is a ILiteralValue and the TextValue is empty.