C-CS PortWizard
|
Public Member Functions | |
Transposer (string CSNameSpace) | |
This method manages the name space for the cs file More... | |
bool | SyntaxScan (ref string codeLine) |
This method scan each line of object c code and transpose it to c-sharp More... | |
Private Member Functions | |
int | SyntaxTableLastIndex (int IndexA, int IndexB) |
This method manages the syntax table indexs More... | |
void | Transpose_Generic_Syntax (char Mode, ref string codeLine, int SyntaxMatchNumber) |
This method Manages the generic syntax transpose More... | |
void | Transpose_Studio_Syntax (char Mode, ref string codeLine, int SyntaxMatchNumber) |
This method manages the stdio.h library transpose More... | |
void | Transpose_Stdlib_Syntax (char Mode, ref string codeLine, int SyntaxMatchNumber) |
This method manages the stdlib.h library transpose More... | |
void | Transpose_String_Syntax (char Mode, ref string codeLine, int SyntaxMatchNumber) |
This method manages the String.h libraty transpose More... | |
Private Attributes | |
const int | HEADER_MAX = 100 |
const int | SYNTAX_MAX = 100 |
string[,] | SyntaxTable |
string | CSNameSpace = "" |
Definition at line 12 of file Transposer.cs.
CCSPortWizard.Transposer.Transposer | ( | string | CSNameSpace | ) |
This method manages the name space for the cs file
<method name="Transposer"></method>
string CSNameSpace |
Definition at line 29 of file Transposer.cs.
bool CCSPortWizard.Transposer.SyntaxScan | ( | ref string | codeLine | ) |
This method scan each line of object c code and transpose it to c-sharp
<method name="SyntaxScan"></method>
ref string codeLine |
This loop cycles through the header files syntax for a match
This loops unitl a match is found
While in looping process if a match is found then the transpose method is called
Definition at line 507 of file Transposer.cs.
|
private |
This method manages the syntax table indexs
<method name="SyntaxTableLastIndex"></method>
int IndexA, int IndexB |
This case locates the first dimension in the syntax table index after the last first dimension index
This case locates the second dimension in the syntax table index after the last second dimension index
Definition at line 51 of file Transposer.cs.
|
private |
This method Manages the generic syntax transpose
<method name="Transpose_Generic_Syntax"></method>
char Mode, ref string codeLine, int SyntaxMatchNumber |
keyword r triggers registry word
Keyword c triggers the c-sharp code transpose
Checking for a main in the codes
Checking for the #include tag in the codes
checks keyword and delete code line
Skips the string.h #include if found
Checking for char
Checking for NULL
Definition at line 88 of file Transposer.cs.
|
private |
This method manages the stdlib.h library transpose
<method name="Transpose_Stdlib_Syntax"></method>
char Mode, ref string codeLine, int SyntaxMatchNumber |
The r triggers the regirtry words
The c triggers the transposing oc c to c-sharp
This case handles the transpose of atoi
Definition at line 413 of file Transposer.cs.
|
private |
This method manages the String.h libraty transpose
<method name="Transpose_String_Syntax"></method>
char Mode, ref string codeLine, int SyntaxMatchNumber |
The r triggers the registry words
The c triggers the transposing oc c to c-sharp
This case handles the transpose from strlen
Definition at line 460 of file Transposer.cs.
|
private |
This method manages the stdio.h library transpose
<method name="Transpose_Studio_Syntax"></method>
char Mode, ref string codeLine, int SyntaxMatchNumber |
The r triggers the regirtry words
The c triggers the transposing oc c to c-sharp
This case triggers for printf syntax
This condition includes a new line in the transpose
This condition do not includes a new line in the transpose
This case searches for the gets syntax
This case searches for the FILE syntax
This case searches for the FOPEN syntax
This condition is for write file
This condition is for read file
This case searches for fgets syntax
This case searches for fclose syntax
This case searches for fprintf syntax
Definition at line 213 of file Transposer.cs.