[nem-en] Visual Studio plugin

Kamil Skalski kamil.skalski at gmail.com
Fri Jan 13 21:03:06 CET 2006


06-01-13, NoiseEHC <NoiseEHC at freemail.hu> napisał(a):
>  OK, second version, it now can compile code :)

:) cool

>
>
>  No matter what I do it does not highlight "for", "if" etc...
>

For the exact things, which are needed to initialize compiler see
ncc/passes.n

It should be enough to call
LibraryReferenceManager.LoadMacrosFrom ("Nemerle.Macros");
GlobalEnv.Init ();

It will load macros with syntax extensions, register new syntax and
the second call will enable the default environment (which holds the
set of open namespaces and enabled syntax rules).

After that you should be able to call
assert (GlobalEnv.Core.IsKeyword ("for"));

(hm, I will verify this in a moment)

>
>
>  Succeed building so I can debug nemerle code from VS. Maybe you should
> create an msbuild
>  project for Nemerle so people could compile it on Windows. I would do it
> but have no idea
>  what those 3 passes do... :(

And those 3 passes (among other things) might be a little bit too
problematic. We use quite custom scheme of building:
- first the compiler from boot/* is compiling the stage1 compiler  in
ncc/out.stage1/*
- the first stage1 compiler compiles itself again into stage2
- and so on to stage3

at this moment compiler already ate its tail and if the process is
successful, then we know we have somewhat correct compiler. This could
be probably quite hard to code in MSBuild task, though I don't know
MSBuild good enough and I might be mistaken.
We simply benefit from having general purpose language (Makefile) at
hand when building
our app and we use it :)

>
>  I am sorry to hear that. You should talk to MS Poland wether they would
> donate some VS licenses
>  to the University. Or at least some cheap student version. As I know it is
> MS's best interest to
>  have more usable languages for .NET not to mention students learning .NET
> at universities.

Well, I'm no longer a student and I'm now having my own project to
handle and additionally a job. Probably if I could manage some more
time I would push work on IDE (name it VS, SharpDevelop or
MonoDevelop), but currently I just fix some bugs or add new features
when I need them.

Michal (malekith) works on the compiler some more regularly, but he
doesn't like to play with IDE stuff.

I hope it will be easy enough to make the VS plugin up and running, it
would be really great to have it. :)

>
>  So my question to the list:
>  Does anybody have VS.NET 2005 to test this plugin?

Also, I'm still not sure if making the plugin source code public is
permitted by VSIP EULA. AFAIK it forbids it... Still, I guess it will
be ok to share compiled binaries or maybe even release them on the
page in future (after we get a MS's VSIP private key needed to run
plugin without 'experimental' mode).



--
Kamil Skalski
http://nazgul.omega.pl


More information about the devel-en mailing list