translate own syntax to c#
-
Let's say i want to write code using my own syntax for some reason unknown to mankind, and then generate C# code from this mysterious sourcecode. Do you guys know if there are there any already existing programs wich can translate an user defined syntax to C#?
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
-
Let's say i want to write code using my own syntax for some reason unknown to mankind, and then generate C# code from this mysterious sourcecode. Do you guys know if there are there any already existing programs wich can translate an user defined syntax to C#?
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
laserbaronen wrote:
Do you guys know if there are there any already existing programs wich can translate an user defined syntax to C#?
They are called language parsers. You may find it better to translate it to IL rather than C#.
Upcoming FREE developer events: * Glasgow: SQL Server Managed Objects AND Reporting Services ... My website
-
laserbaronen wrote:
Do you guys know if there are there any already existing programs wich can translate an user defined syntax to C#?
They are called language parsers. You may find it better to translate it to IL rather than C#.
Upcoming FREE developer events: * Glasgow: SQL Server Managed Objects AND Reporting Services ... My website
Hm okay, are there any specific parser that is easy to start with? preferrably one that starts with C# settings so i can change specific parts only
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
-
Hm okay, are there any specific parser that is easy to start with? preferrably one that starts with C# settings so i can change specific parts only
fafafa, ringakta icke sådant som bringa ack så naggande högönsklig välmåga å baronens ära.
laserbaronen wrote:
are there any specific parser that is easy to start with?
Triangle, or Mini-Triangle - a training language produced by the University of Glasgow? There is a book about it. (This is not an easy subject and will require a lot of work) There is also a book on languages parsers with the CLR (which is why I suggested parsing the code and spitting out IL) which shows you how to create a parser and generate assemblies.
Upcoming FREE developer events: * Glasgow: SQL Server Managed Objects AND Reporting Services ... My website