Questions tagged [nemerle]

Nemerle is a general-purpose, multi-paradigm programming language for the .Net platform.

Nemerle is a general-purpose, multi-paradigm programming language for the .Net platform. It is as easy to learn and use as C# or VB.NET but Nemerle is by far more powerful. One may start using it as an advanced C# and then, as learning goes on, employ a range of cool features enabling metaprogramming and functional programming. The metaprogramming is based on macros bearing some similarity to Lisp.

Supported paradigms: Object-Oriented Programming (OOP), Functional Programming (FP), Metaprogramming (MP), Component-Oriented Programming (COP), DSL-Oriented Programming (DOP) or Language Oriented Programming (LOP).

Type system: static typing, strong typing, inferred, nominal.

Influenced by: C# (OOP & Imperative support), ML (FP support), Lisp (macros support).

Supported Platforms: CLI (.Net & Mono).

Official sites and communities:
http://nemerle.org/About/
https://github.com/rsdn/nemerle
https://groups.google.com/forum/?fromgroups#!forum/nemerle-en
http://rsdn.ru/forum/nemerle/

58 questions
2
votes
3 answers

How to install Nemerle on Mono

I can't find the solution How to install Nemerle on Mono I've got Nemerle Studio , But I want to try mono with it. Maybe I will make something for Linux later, now I want to try it on windows.
cnd
  • 29,085
  • 60
  • 169
  • 294
2
votes
1 answer

Nemerle OperatorAttribute parameters

My question is in a comment in the following code. namespace TestMacroLib { [assembly: Nemerle.Internal.OperatorAttribute ("TestMacroLib", "multiply", false, 160, 161)] // what does 160 and 161 represent? The parameters are "left" and…
daniel1426
  • 177
  • 3
  • 13
2
votes
1 answer

ExpandoObject in Nemerle

AFAIK Nemerle doesn't have dynamic keyword, late binding doesn't work as well: late{ mutable obj=ExpandoObject(); obj.test="test"; //MissingMethodException } So, is there a way to use ExpandoObject in Nemerle?
2
votes
3 answers

Using cs2n tool in Nemerle

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.
Animesh Pandey
  • 5,246
  • 10
  • 49
  • 118
2
votes
1 answer

how to define byte array in Nemerle

def cmd = array [ 0x0F, 0x03 ] this code defines array of integers so I want array of bytes interesting that def cmd = array [ 0x0Fb, 0x03b ] this code defines the same... how to define byte array instead of int array here?
cnd
  • 29,085
  • 60
  • 169
  • 294
2
votes
5 answers

F# Meta-programming: is it possible to make IF X = 1 OR 2 syntax?

I want to simplify expression if(x == 1 || x == 2). I wish I could write if(x == 1 or 2) but there is no syntax for that. Other possibility is to use Contains or Any method like: if([1,2].Contains(x)) but this involves unnecessary call. Can I create…
cnd
  • 29,085
  • 60
  • 169
  • 294
2
votes
2 answers

How do I use quasi-quotations to get an AST in Nemerle?

I try to get the AST of a simple code-snippet in Nemerle, using Nemerle's quasi-quotes. This is the code I tried: def ast() : void { System.Console.WriteLine(<["Test"]>) } I ran it on IdeOne (ncc 0.9.3) and I got this error: prog.nem:2:30:2:36:…
soc
  • 27,310
  • 18
  • 99
  • 209
1
vote
1 answer

Tune cindent "switch" indentation

Nemerle is a C-like language and mostly works very well with cindent. However, its construct analogous to switch is called match: match (x) // switch (x) { // { | "Hello World" => ... // case "Hello World":…
Don Reba
  • 12,756
  • 3
  • 41
  • 55
1
vote
0 answers

How to compile Android Monogame on Nemerle?

Can I develop MonoGame for Android with Nemerle ? I need help setting up "Hello World" project (which targets and which references should be used?) Please let me know if you need additional info. Thank you.
1
vote
5 answers

Script.Net vs Nemerle

I was looking into scripting to be incorporated into my apps. Then I bumped into Script.Net and Nemerle. I do know that they have different syntax and Nemerle supports macro but not Script.Net. But I would like to know more about their differences…
faulty
  • 7,547
  • 11
  • 41
  • 60
1
vote
0 answers

How to use Nemerle in msbuild/MonoDelevep project files

I have a project which (for reasons beyond my control) uses MonoDevelop's build system. I'm unfamiliar with its build system, but I understand it IS the msbuild project format. I can include Nemerle sources by invoking the Nemerle compiler as a…
Abscissa
  • 72
  • 6
1
vote
2 answers

How to cancel binding ObjectDataSource?

CheckPara is my OnDataBinding procedure SqlDataSource1 is ObjectDataSource (it's only confusing name) Language is Nemerle, but if you know C# you can read it easy protected virtual CheckPara(_ : object, _ : System.EventArgs) : void { …
cnd
  • 29,085
  • 60
  • 169
  • 294
1
vote
1 answer

Could not load ConfigurationSection class - type

at web.config
cnd
  • 29,085
  • 60
  • 169
  • 294
1
vote
1 answer

How to save class object to file and then encrypt it with open and closed key

How to save class object to file and then encrypt it with open and closed key. closed key must be one for all (just for safe) and open key must be different for each file. I want use this code ... Looking like it is what I want but I still need…
cnd
  • 29,085
  • 60
  • 169
  • 294
1
vote
1 answer

Cached ResourceManager instance request — how to convert the code to Nemerle

C# CODE : [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if…
cnd
  • 29,085
  • 60
  • 169
  • 294