Pregunta

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.

¿Fue útil?

Solución

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.

Otros consejos

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 bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top