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 Errors [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...
 

Protected fields

LesPrecedenceMap _prec = LesPrecedenceMap.Default
 

Protected static fields

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

Member Function Documentation

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

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.

References Loyc.Syntax.ParseHelpers.EscapeCStyle(), Loyc.Syntax.ILNode.Name, Loyc.Symbol.Name, Loyc.Syntax.Les.Les2PrinterOptions.QuoteUnprintableLiterals, Loyc.Syntax.ILNode.Style, and Loyc.Syntax.Les.TokenExt.ToString().

Member Data Documentation

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

Context: beginning of main expression (potential superexpression)