Archives for C#
Creating a Class-Based OOP Language: Adding Class Constructors Support (Advanced User)
This part is for advanced users only. Beginners should really read previous articles (see related articles at the end) before being able to understand this one.
From First Part (that one was very easy), we have defined these two functions:
Class: func]
new: func ]
]
Let's say we have added the constructor Person (method ...more»
Easily Integrate Rebol with Visual Studio Express as Code Generator (Part II)
In part I, we created 2 Rebol Templates which generate a new form (.cs and .Designer.cs) within the Visual Studio Project directory. Unfortunately, Visual Studio doesn't detect and ask if we would like to add them automatically. If we really want to do this manually, we have to automate further.
To ...more»
Tags: C#, Code Generation, Parsing, Visual Studio, XML
How to redirect the C# compiler output to Rebol Console
Are you a C# programmer and are you a fan of SnippetCompiler ? If no see why in "Ten Must-Have .NET Tools" (Snippet Compiler is Number One), if yes then you will love the idea of being able to test a C# snippet code by just copying it to the ...more»
Tags: Build Tools, C#, Command Line, Console, Redirection, Shell, Subversion, Testing
Easily Integrate Rebol with Visual Studio Express as Code Generator (part I)
Rebol has a powerfull range of tools for generating code. So why not integrate it with IDEs like Visual Studio ? Yes, I know it's no more a secret that Visual Studio Professional and above supports its own Templating Engine (T4) but not Visual Studio Express Edition. Also Rebol can ...more»
How to call Rebtweeter CGI from C#/ASP.NET through HttpWebRequest
We just added to the Winform of previous tutorial a "Request Remote Server" checkbox option (see picture below) which is our Rebtweeter WebService (made in Rebol in our case).
as for code we just put in the OK Button Event Handler (Full Visual Studio Project here) this short snippet:
...more»
How to call Rebtweeter from C# Client (through Command Line Arguments)
Microsoft has made a great job with Visual Studio IDE for building Windows Applications and they even generously ;) offer Visual Studio Express Editions. So you may like to use Winform instead of Rebol's VID or you just don't want to re-develop everything and want to integrate a Rebol's library ...more»
Tags: Command Line, Shell
Design Patterns Quiz in Rebol (part I)
Quiz Tool like Memory Lifter is a great memorisation technique (read also "How to memorize anything"). In this first lesson, we will build a simple textual version (next version will have a visual GUI).
The first version of our script below is based upon the one found here except for ...more»
18 Jul by admin in All, C#, Code Generation, Domain Specific Language, Expert, Java, OOP, Parsing, Professional Programming
Create your own DSL for Java or C# (part 4): adding a Semantic Layer
According to Martin Fowler:
In the context of a DSL, a semantic model is an in-memory representation, usually an object model, of the same subject that the DSL describes. The Semantic Model increases the flexibility in parsing and also in execution. You can execute the Semantic Model directly or you can ...more»
Tags: C#, Code Generation, dsl, Java, Martin Fowler, Model, OOP, Parsing
27 Jun by admin in All, Automation, C#, Code Generation, Domain Specific Language, Hot, OOP, Parsing, Professional Programming
Create your own C# Code Generator with DSL in 15 minutes [part 2]
Code Generation is a big trend from Code Snippet Generators to Full-Blown Software Factories. Our idea here is to use Domain Specific Language to generate Code Snippets like Visual Studio can do but more flexibly and more agnostically (you are not stuck with .NET languages or obliged to buy Visual ...more»





No Comment
Tags: Advanced, OOP, Reflection