Table of Contents

Class Input

Namespace
CdlToCSharp
Assembly
CADability.dll

Tokenizer for CDL files (the class definition language of Open CASCADE), a leftover of the CdlToCSharp tool that converted CDL class definitions to C#; not used by CADability itself. It reads a file into a list of tokens (identifiers, numbers, string literals, special characters and "--" comments) and offers a cursor (Index) with helpers to consume tokens, to recognize keywords and to collect the "---Purpose" comments in Comment so that they can be turned into C# documentation comments.

public class Input
Inheritance
Input
Inherited Members

Constructors

Input(string)

public Input(string filename)

Parameters

filename string

Fields

Comment

public string Comment

Field Value

string

Index

public int Index

Field Value

int

Token

public string[] Token

Field Value

string[]

Properties

IsIdentifier

public bool IsIdentifier { get; }

Property Value

bool

IsKeyWord

public bool IsKeyWord { get; }

Property Value

bool

IsLiteral

public bool IsLiteral { get; }

Property Value

bool

IsNumeric

public bool IsNumeric { get; }

Property Value

bool

Methods

Assert(string)

public void Assert(string ToCheck)

Parameters

ToCheck string

Eat(string)

public bool Eat(string ToCheck)

Parameters

ToCheck string

Returns

bool

EatComment()

public void EatComment()

GetComment()

public string GetComment()

Returns

string

Next()

public string Next()

Returns

string

NextIdentifier()

public string NextIdentifier()

Returns

string