S
Steve Richter
I would like to create a new programming language that is based on
C#. call it XC#. Where the XC# command line compiler, xcsc,
functions as a precompiler that converts the xc# source code to c# and
calls the csc compiler to compile the resulting code.
how would the source code debugger work with such a thing? Where I
would need different source code views of the code being debugged. The
XC# code the programmer coded and the C# code that was actually
compiled. I would want the debugger to show the XC# code but suspect
only the translated to C# code would appear. Does the .NET debugger
support multiple views of the code being debugged?
( on the same note, it would be neat when debugging c# code to switch
to the MSIL view of the code )
xc# would have a feature for interspersing native sql into the c#
source code:
int activityId = 5 ;
DateTime activityDate ;
Decimal activityAmt ;
/sql
select a.activityAmt, a.ActivityDate
into :activityAmt, :activityDate
from Disbursements a
where a.ActivityId = :activityId
/end
In Visual Studio I would want the source to be handled as c# code
until the /sql line is encountered. Then my addin that parses xc#
code would kick in.
Just dreaming. would be great if programming languages could inherit
from base languages just like classes can inherit from base classes.
Interested to know what is doable and what is not.
-Steve
C#. call it XC#. Where the XC# command line compiler, xcsc,
functions as a precompiler that converts the xc# source code to c# and
calls the csc compiler to compile the resulting code.
how would the source code debugger work with such a thing? Where I
would need different source code views of the code being debugged. The
XC# code the programmer coded and the C# code that was actually
compiled. I would want the debugger to show the XC# code but suspect
only the translated to C# code would appear. Does the .NET debugger
support multiple views of the code being debugged?
( on the same note, it would be neat when debugging c# code to switch
to the MSIL view of the code )
xc# would have a feature for interspersing native sql into the c#
source code:
int activityId = 5 ;
DateTime activityDate ;
Decimal activityAmt ;
/sql
select a.activityAmt, a.ActivityDate
into :activityAmt, :activityDate
from Disbursements a
where a.ActivityId = :activityId
/end
In Visual Studio I would want the source to be handled as c# code
until the /sql line is encountered. Then my addin that parses xc#
code would kick in.
Just dreaming. would be great if programming languages could inherit
from base languages just like classes can inherit from base classes.
Interested to know what is doable and what is not.
-Steve