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 the helper classes of Les2Printer and Ecs.EcsNodePrinter, called LesNodePrinterWriter and EcsNodePrinterWriter. See INodePrinterWriter. More...


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

Remarks

Base class for the helper classes of Les2Printer and Ecs.EcsNodePrinter, called LesNodePrinterWriter and EcsNodePrinterWriter. 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)
 
virtual void Reset ()
 
- 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