Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια

C# and .NET Tips and Tricks

Quests in programming in .NET

Μάιος 2010 - Δημοσιεύσεις

Domain Specific Languages with M - Part 3/3 Consuming the DSL at runtime in C#
In this last post of the small series we will see how we can load the syntax of a DSL in C# and then feed it with an input text that we need to be parsed. In this post we have already described how to write the DSL syntax and in this post we have seen how to decorate it with productions. So following the process described in those posts we end up with a file containing the description of the syntax of our DSL, along with its productions (eg the file Renting_en.mg available for download in the zip file provided

Διαβάστε περισσότερα »

Posted: Πέμπτη, 20 Μαΐου 2010 7:52 πμ από iwannis | 0 σχόλια
Δημοσίευση στην κατηγορία:
Domain Specific Languages with M - Part 2/3 Attributes and Productions
In the previous post we have covered the basics of the M language concerning the development of a Domain Specific Language (DSL). In this post we will extent the syntax of the described DSL by adding attributes and production rules. On feature that is kinda interesting is the ability to use attributes to define syntax highliting to the left panel of Intellipad (where your input text appears). Those attributes decorate the tokens of the syntax and are introduced by the @{Classification["Keyword"]} ,

Διαβάστε περισσότερα »