DSL?

21 views
Skip to first unread message

jacksonh

unread,
Dec 11, 2010, 2:34:10 PM12/11/10
to nina-dev
Hello,

I just got a chance to checkout Nina and I am a little confused about
it being a Domain Specific Language. From the example on the homepage
it looks like its all C#. Is there another way of creating Nina apps
using a DSL?

Cheers,
Jackson

Dotan N.

unread,
Dec 12, 2010, 2:37:46 AM12/12/10
to nina...@googlegroups.com
Hi Jackson,
Nina's DSL is an internal DSL. it is as much as it can be, given the constraint that everything still needs to be C#.
I apologize if from the text it seems otherwise!

However, i'm aware that sinatra proper has 2 modes, 'classic' and the new mode. in the classic mode, you must derive from Sinatra Application (which is much like Nina). in the new mode you use an internal DSL -- however since Ruby is awesome, it looks much like an external DSL that has nothing to do with the hosting programming language.

There might be room for such a DSL that you are mentioning,  i'm suggesting that you hop on the waggon and try throwing in what you were thinking about :)

Jackson Harper

unread,
Dec 12, 2010, 1:42:27 PM12/12/10
to nina...@googlegroups.com
Ah, thanks for clearing that up. I was poking around the code looking
for a compiler or interpreter. I was thinking that maybe you were
taking files in a format like this:

get <url> do
{ csharp }
end

and expanding that out into a C# file for compilation:

using ....

public class NinaApp : Application {

public NinaApp ()
{
Get ("<the url>", <the csharp>);
}
}


I've always thought something like this would be nice for cutting down
on all boilerplate code, but I suppose people that use an IDE wouldn't
like it because they wouldn't get their code completion.

Thanks!
Jackson

Reply all
Reply to author
Forward
0 new messages