Pergunta

I am using Nemerle on VS2010. I wish to convert some c sharp code to nemerle sources

How to install cs2n on windows ?

I checked the tutorials but the way of using ANTLR is also not clear.

Foi útil?

Solução

CS2N is not a very good tool. It is unmaintained and has poor C# support. There is little use for it, because the Nemerle compiler can read C# code as is.

Outras dicas

The Nemerle includes the PegGrammar macro. This is a parser generator macro in many respects superior to ANTLR. Use it instead.

There is no working tool now.

You have AstConverter here: https://github.com/rsdn/nemerle/tree/master/snippets/csharp-parser/CSharpToNemerle

You can write some code which writes Nemerle code output.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top