[nem-en] small detail about indent based syntax

Kamil Skalski kamil.skalski at gmail.com
Mon Nov 7 19:15:10 CET 2005


> >
>  it is allowed for normal cases ! ;-p
>    | 12 => print("allo");
>    | 23 => print("bonjour");
>

The problem is that it is not allowed for multiple clauses in one match case:

match (x) {
  | 12 ;
  | 23 =>  print ("aa");
}

and this is what our indentation frontend generates automatically for

   match (x)
      | 12
      | 23 => print ("aa")


Probably it is possible to workaround in parser and allow such code.

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



More information about the devel-en mailing list