StarmanX32
Member
Hi, this might be weird for many of you, we all know making sprx menus is only possible in C and C++, however, i've thought about something in the past couple days, making a transcompiler that translates from C# to C or C++ and then compiles the C/C++ result to a self or sprx or whatever.
How could this be done?
C# has many functions for manipulating strings and other datatypes. The transcompiler reads the input file line by line and replaces C# typical syntax with C/C++ syntax. I know that C/C++ has some datatypes or other things that are not available in C#, stuff like unions or register keyword as example, i already have an idea for that, making C# structs or classes with a specific name, as example: union or register struct (i've choosen structs or classes beacuse of the green syntax highlighting in VS) in C#, it replaces the struct name with the keyword name, this might not work for everything, but should solve most issues.
However, some things might be hard to translate properly... Like i said, this is just an idea and i might take some time and work on a transcompiler like that...
What do you think about it?
Gesendet von meinem SNE-LX1 mit Tapatalk
How could this be done?
C# has many functions for manipulating strings and other datatypes. The transcompiler reads the input file line by line and replaces C# typical syntax with C/C++ syntax. I know that C/C++ has some datatypes or other things that are not available in C#, stuff like unions or register keyword as example, i already have an idea for that, making C# structs or classes with a specific name, as example: union or register struct (i've choosen structs or classes beacuse of the green syntax highlighting in VS) in C#, it replaces the struct name with the keyword name, this might not work for everything, but should solve most issues.
However, some things might be hard to translate properly... Like i said, this is just an idea and i might take some time and work on a transcompiler like that...
What do you think about it?
Gesendet von meinem SNE-LX1 mit Tapatalk