Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | Static Public Member Functions | Protected fields | Protected static fields | List of all members
Loyc.Syntax.Les.Les2Printer Class Reference

Prints a Loyc tree in LES (Loyc Expression Syntax) format. More...


Source file:

Remarks

Prints a Loyc tree in LES (Loyc Expression Syntax) format.

Unless otherwise noted, the default value of all options is false.

Properties

INodePrinterWriter Writer [get, set]
 
IMessageSink?? ErrorSink [get, set]
 
Les2PrinterOptions Options [get]
 

Public Member Functions

void SetOptions (ILNodePrinterOptions options)
 

Static Public Member Functions

static string PrintId (Symbol name)
 
static string PrintLiteral (object value, NodeStyle style=0)
 
static string PrintString (string text, char quoteType, bool tripleQuoted)
 
static bool IsNormalIdentifier (Symbol name)
 Returns true if the given symbol can be printed as a normal identifier, without an "@" prefix. Note: identifiers starting with "#" still count as normal; call LNode.HasSpecialName to detect this. More...
 
static bool IsNormalIdentifier (UString name)
 

Protected fields

Les2PrecedenceMap _prec = Les2PrecedenceMap.Default
 

Protected static fields

static readonly Precedence StartStmt = Precedence.MinValue
 Context: beginning of main expression (potential superexpression) More...
 

Member Function Documentation

◆ IsNormalIdentifier()

static bool Loyc.Syntax.Les.Les2Printer.IsNormalIdentifier ( Symbol  name)
static

Returns true if the given symbol can be printed as a normal identifier, without an "@" prefix. Note: identifiers starting with "#" still count as normal; call LNode.HasSpecialName to detect this.

Member Data Documentation

◆ StartStmt

readonly Precedence Loyc.Syntax.Les.Les2Printer.StartStmt = Precedence.MinValue
staticprotected

Context: beginning of main expression (potential superexpression)