[nem-en] Visual Studio plugin
Kamil Skalski
kamil.skalski at gmail.com
Sat Jan 14 22:14:19 CET 2006
> >
> OK, that works. I did the same but in the opposite order.
Great, does it make LexerColorizer correctly recognize keywords from
GlobalEnv.Core ("for", "while", etc.)?
Because for distinguishing keywords lexer need to know a little bit
about the current environment, that is which namespaces are open. The
environments are recognized by PreParser, which creates GlobaleEnv
objects and uses them to add new keywords to lexer on the fly.
So, if you want to use LexerColorizer class in its current shape and
recognize user defined keywords, you would need to do this additional
parsing of 'using' and 'namespace' declarations to create GlobalEnv
objects.
In essence it can be achieved by:
Env = Env.EnterIntoNamespace (id);
lexer.Keywords = Env.Keywords;
where Env is a current GlobalEnv object (this code comes from
ncc/parsing/PreParser.n)
See also http://nemerle.org/Compiler_internals
> >
> Probably we think different things about "up and running". As I see no
> other dev environment has
> real syntax highlighting. I mean they have none (Sharp and MonoDevelop)
> or just a coloring file
Of course you are right, we suffer lack of good modern IDE for Nemerle.
MonoDevelop has some simple syntax coloring and project support. There
is also (not yet released) plugin for SharpDevelop 2.0, offering
similar capabilities.
> (VI and the rest). I want to color the user created sytax too (macros)
> not to mention code completion,
> go to definition, expand/collapse code, see macro generated code,
> expression evaluator and so on...
Surely a lot of work, but it is possible.
> So simply I would like to see this language becoming industrial strength
> and a big part of it is
Me too! I'm using it now in my own comercial project it I suffer every
moment when I have to make my design uglier when coming back to C# or
other language.
And just to mention, it is even a greater pain when I must use Java in
my workplace, which is even worse than C# or C++ (at least on some
aspects).
>
> So my best hope is that some people in this list can help me finish this
> project.
>
There were some efforts to make Nemerle.Compiler work as code
completion engine, but it somehow stopped - some general structure and
working basic examples were created.
It would be great to bring this back to life and continue with it.
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list