Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | List of all members
Loyc.Syntax.Les.CustomLiteral Struct Reference

A custom literal is a normal number or string paired with a (typically unrecognized) type prefix or suffix. More...


Source file:
Inheritance diagram for Loyc.Syntax.Les.CustomLiteral:

Remarks

A custom literal is a normal number or string paired with a (typically unrecognized) type prefix or suffix.

This structure is used as the value of an LESv3 token to represent non-standard numbers and strings such as 1.1unum and bytes"ab cd"

Properties

object Value [get, set]
 The numeric or string value of the literal. More...
 
Symbol TypeMarker [get, set]
 A prefix or suffix on the literal that represents some additional meaning. More...
 

Public Member Functions

 CustomLiteral (object value, Symbol typeMarker)
 
bool Equals (CustomLiteral rhs)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Property Documentation

◆ TypeMarker

Symbol Loyc.Syntax.Les.CustomLiteral.TypeMarker
getset

A prefix or suffix on the literal that represents some additional meaning.

◆ Value

object Loyc.Syntax.Les.CustomLiteral.Value
getset

The numeric or string value of the literal.