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
filenamestring
Fields
Comment
public string Comment
Field Value
Index
public int Index
Field Value
Token
public string[] Token
Field Value
- string[]
Properties
IsIdentifier
public bool IsIdentifier { get; }
Property Value
IsKeyWord
public bool IsKeyWord { get; }
Property Value
IsLiteral
public bool IsLiteral { get; }
Property Value
IsNumeric
public bool IsNumeric { get; }
Property Value
Methods
Assert(string)
public void Assert(string ToCheck)
Parameters
ToCheckstring
Eat(string)
public bool Eat(string ToCheck)
Parameters
ToCheckstring
Returns
EatComment()
public void EatComment()
GetComment()
public string GetComment()
Returns
Next()
public string Next()
Returns
NextIdentifier()
public string NextIdentifier()