Utils Module


This module defines the following types:

PrettyPrintToken Type

Pretty printing tokens are fed to the PrettyPrinter in order to produce a string representation

Implemented Interfaces

  • IEquatable<PrettyPrintToken>
  • IStructuralEquatable
  • IComparable<PrettyPrintToken>
  • IComparable
  • IStructuralComparable

Methods

Modifiers Return type Method name Method parameters Description
static PrettyPrintToken NewManyTokens PrettyPrintToken list
static PrettyPrintToken NewTextToken string
int CompareTo PrettyPrintToken
int CompareTo Object
int CompareTo Object, IComparer
int GetHashCode IEqualityComparer
int GetHashCode
bool Equals Object, IEqualityComparer
bool Equals PrettyPrintToken
bool Equals Object

Properties

Return type Property name Description
int Tag
bool IsManyTokens
bool IsTextToken
PrettyPrintToken NewLineToken
bool IsNewLineToken
PrettyPrintToken UntabToken
bool IsUntabToken
PrettyPrintToken TabToken
bool IsTabToken

 

TextToken Type

Base type: PrettyPrintToken
Produces the given text and continues

Implemented Interfaces

  • IEquatable<PrettyPrintToken>
  • IStructuralEquatable
  • IComparable<PrettyPrintToken>
  • IComparable
  • IStructuralComparable

Properties

Return type Property name Description
string Item

 

ManyTokens Type

Base type: PrettyPrintToken
Produces the text given by the nested tokens and continues

Implemented Interfaces

  • IEquatable<PrettyPrintToken>
  • IStructuralEquatable
  • IComparable<PrettyPrintToken>
  • IComparable
  • IStructuralComparable

Properties

Return type Property name Description
PrettyPrintToken list Item

 

PrettyPrinter Type

The PrettyPrinter provides functionality to print a list of PrettyPrintTokens

Methods

Modifiers Return type Method name Method parameters Description
static string PrettyPrint PrettyPrintToken list Transform the tokens into their string representation

 

ParseException Type

Base type: Exception
Raised when something goes wrong during parsing. It contains the line and column on which the error was produced, an informative text and the full text with the context on which the error occured

Implemented Interfaces

  • ISerializable
  • _Exception
  • IStructuralEquatable

Methods

Modifiers Return type Method name Method parameters Description
int GetHashCode IEqualityComparer
int GetHashCode
bool Equals Object, IEqualityComparer
bool Equals Exception
bool Equals Object

Properties

Return type Property name Description
string Data0
string Data1
int Data2
int Data3

 

Automatically generated on 6/10/2011 2:28:40 PM
 

Last edited Jun 10, 2011 at 9:38 PM by gdecaso, version 3

Comments

No comments yet.