Rebol Tutorial

Rebol Programming - Learn Rebol with Real-World Examples

Archives for C#

14 Dec by admin in All, C#, Code Generation, Concept, OOP

Creating a Class-Based OOP Language: Adding Class Constructors Support (Advanced User)

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»
16 Oct by admin in All, Automation, C#, Code Generation

Easily Integrate Rebol with Visual Studio Express as Code Generator (Part II)

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»
8 Oct by admin in All, Automation, C#

How to redirect the C# compiler output to Rebol Console

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»
20 Sep by admin in All, C#, Code Generation

Easily Integrate Rebol with Visual Studio Express as Code Generator (part I)

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

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)

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»

Design Patterns Quiz in Rebol (part I)

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»

Create your own DSL for Java or C# (part 4): adding a Semantic Layer

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»

Create your own C# Code Generator with DSL in 15 minutes [part 2]

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»