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

Base class for token-printing helper classes. See INodePrinterWriter. More...


Source file:
Inheritance diagram for Loyc.Syntax.Les.DefaultNodePrinterWriter:
Loyc.Syntax.Les.NodePrinterWriterBase Loyc.Syntax.Les.INodePrinterWriter

Remarks

Base class for token-printing helper classes. See INodePrinterWriter.

Properties

override object Target [get]
 
override char LastCharWritten [get]
 
override int LineNumber [get]
 
- Properties inherited from Loyc.Syntax.Les.NodePrinterWriterBase
abstract object Target [get]
 
abstract char LastCharWritten [get]
 
abstract int LineNumber [get]
 
- Properties inherited from Loyc.Syntax.Les.INodePrinterWriter
object Target [get]
 Gets the object being written to (TextWriter or StringBuilder) More...
 
char LastCharWritten [get]
 
int LineNumber [get]
 

Public Member Functions

 DefaultNodePrinterWriter (StringBuilder sb, string indentString="\t", string lineSeparator="\n", string labelIndent=null)
 
 DefaultNodePrinterWriter (TextWriter @out, string indentString="\t", string lineSeparator="\n", string labelIndent=null)
 
override void Write (char c, bool finishToken)
 
override void Write (string s, bool finishToken)
 
override void Space ()
 
override void BeginLabel ()
 
override void BeginStatement ()
 
override void Newline (bool pending=false)
 
override void Reset ()
 Called when a new, separate printing operation begins. More...
 
- Public Member Functions inherited from Loyc.Syntax.Les.NodePrinterWriterBase
virtual int Indent ()
 
virtual int Dedent ()
 
virtual void Push (LNode n)
 
virtual void Pop (LNode n)
 

Protected Member Functions

virtual void FinishToken (char lastCh)
 
abstract void StartToken (char nextCh)
 

Protected fields

string _indentString
 
string _lineSeparator
 
string _labelIndent
 
char _lastCh = '\n'
 
bool _startingToken = true
 
bool _newlinePending = false
 
string _indentPending
 
int _lineNumber = 1
 
int _lastNewlineAt = 0
 
TextWriter _out
 
- Protected fields inherited from Loyc.Syntax.Les.NodePrinterWriterBase
int _indentLevel = 0
 

Member Function Documentation

◆ Reset()

override void Loyc.Syntax.Les.DefaultNodePrinterWriter.Reset ( )
inlinevirtual

Called when a new, separate printing operation begins.

Implements Loyc.Syntax.Les.NodePrinterWriterBase.