Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. translate own syntax to c#

translate own syntax to c#

Scheduled Pinned Locked Moved C#
csharpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    laserbaronen
    wrote on last edited by
    #1

    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.

    C 1 Reply Last reply
    0
    • L laserbaronen

      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.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      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

      L 1 Reply Last reply
      0
      • C Colin Angus Mackay

        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

        L Offline
        L Offline
        laserbaronen
        wrote on last edited by
        #3

        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.

        C 1 Reply Last reply
        0
        • L laserbaronen

          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.

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups