Search the web
Sign In
New User? Sign Up
win_tech_off_topic · Windows Technical: Off Topic

Group Information

  • Members: 1036
  • Category: Windows
  • Founded: Jul 27, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
A declaritive language for generating a CodeDOM graph?   Message List  
Reply Message #5075 of 60294 |
So, it took a while, but I'm back into codegen [1] again, this time under .NET. : )  I went with XSLT this time (it didn't exist last time [2]) and while it works (and is surprising fast for my application), the problem is multi-language support. The crowd that hangs out where I announce this kind of stuff (i.e. these lists : ) is all over adding to the C# templates, but the VB templates lag (although I built them in as first class citizens!).
 
The problem, of course, is that the code is mandated via the literal parts of the XSLT, so until someone ports the C# to the VB, the VB lags. Of course, the way to go would to be use the CodeDOM itself to generate the code (this is the way that the other custom code generators in VS.NET work, BTW). However, writing CodeDOM code is not fun, either, so I want a language that I can write that defines a CodeDOM graph (if you see what I mean). The obvious choice here is XML, but I don't look forward to writing in anything non-trivial in an XML programming language. Any other suggestions? Does anyone think parsing C# and turning it into a CodeDOM to be generated back into another .NET language (or potentially itself) is overkill? Has anyone done any of this kind of work? I'd sure love to pitch in on a rolling project instead of inventing all of this again [2]. I'd like to think that I learned my lesson last time [3]. : )
 
Chris
 
 


Sat Apr 13, 2002 7:31 am

csells
Offline Offline
Send Email Send Email

Message #5075 of 60294 |
Expand Messages Author Sort by Date

So, it took a while, but I'm back into codegen [1] again, this time under .NET. : ) I went with XSLT this time (it didn't exist last time [2]) and while it...
Chris Sells
csells Offline Send Email
Apr 13, 2002
7:31 am

What do control designers do in regards to parsing code when rendering in design-mode? Is there anything in the CodeDOM (even if it’s tucked away) that...
Dan Green
dan@... Send Email
Apr 13, 2002
7:47 am

This subject reminds me of Charles Simonyi’s Intentional Programming project. Anyone care to predict where it fits into the future of .NET? --Dan ... From:...
Dan Green
dan@... Send Email
Apr 13, 2002
10:47 am

IIRC, Jay Freeman's Anakrino* tool disassembles MSIL into XML. The CodeDOM has an interface for Code Parsers, but nothing in the framework currently implements...
Richard Birkby
phidias90909 Offline Send Email
Apr 13, 2002
11:45 am

Anakrino doesn't do that. I did that once a while back and still have the code sitting around somewhere (and have been thinking of ressurecting it over the...
Jay Freeman (saurik)
saurik Offline Send Email
Apr 14, 2002
12:57 am

OK, I got 2 lines of code into it (I called the programming language Condom) and I managed to crash Microsoft's C++ compiler, so I'm giving up :). Sincerely, ...
Jay Freeman (saurik)
saurik Offline Send Email
Apr 14, 2002
1:18 am

... Condom) ... Well, at least you gave it your best shot... : P --Chris ... building...
Chris Sells
csells Offline Send Email
Apr 14, 2002
3:30 pm

ROTFL-) Sam Gentile Co-Author Wrox Professional Visual C++.NET (ISBN 1861005962 ) ManagedCode@attbi <mailto:ManagedCode@...> .com ...
Sam Gentile
managedcode Offline Send Email
Apr 14, 2002
3:57 pm

In what way would a functional programming language help? Parsing? Generating the CodeDOM? Help me to understand. Chris ... From: Stuart Celarier To:...
Chris Sells
csells Offline Send Email
Apr 14, 2002
10:51 pm

I have some code lying around where I tried to do exactly what I think you might be looking for. I basically translate the CodeDom classes and properties to...
Jason Diamond
injektilo12 Offline Send Email
Apr 15, 2002
7:11 am

A major focus of the talk was FP's ability to separate out the syntax from the semantics, and preserve the semantics in a new syntax. [csells] That's what I'm...
Chris Sells
csells Offline Send Email
Apr 15, 2002
8:57 pm

The slides from the talk on FP are available at http://www.cpd.ogi.edu/seminars/launchburyseminar.pdf. The hook of the talk was managing legacy code, but the...
Stuart Celarier
stuartcelarier Offline Send Email
Apr 15, 2002
11:31 pm

For anybody who might be interested, I just posted my Xml2CodeDom sample [1]. Later on, I might try writing the Xml2CodeDom code in XML so that it can generate...
Jason Diamond
injektilo12 Offline Send Email
Apr 16, 2002
6:31 am

Wow, Jason. I believe we have a winner for most verbose Hello, World. : ) Chris Sells http://www.sellsbrothers.com/ ... graph? ... sample ... it ... always ......
Chris Sells
csells Offline Send Email
Apr 16, 2002
2:10 pm

There are some (e.g., John Launchbury, formerly of OGI) who I would imagine would recommend a functional programming language such as Haskell for tackling this...
Stuart Celarier
stuartcelarier Offline Send Email
Apr 14, 2002
10:19 pm

Hi Chris, I thought of doing exactly that. Parse C# code into a CodeDOM. But I got stuck getting a good c# parser.(I have never written a parser and so had to...
anand.m@...
anandmukundan Offline Send Email
Apr 15, 2002
5:26 am

My current thinking is that a subset C# parser would allow 1) users to test their code before turning it into a template via csc and 2) a fairly natural syntax...
Chris Sells
csells Offline Send Email
Apr 15, 2002
5:31 am

... I might take a crack at this. You want a C# parser, right? I.e. (let me just make sure I have this clear in my head): Input: On-disk C# source code ...
pbartrum Offline Send Email Apr 24, 2002
4:23 am

Chris, Let me first state my very limited knowledge of functional programming (FP). Done. My thinking is that Haskell or similar might be an attractive option...
Stuart Celarier
stuartcelarier Offline Send Email
Apr 15, 2002
7:06 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help