syntax: use attributes names for parameters in implicit inits
authorJean Privat <jean@pryen.org>
Fri, 20 Jan 2012 01:22:10 +0000 (20:22 -0500)
committerJean Privat <jean@pryen.org>
Fri, 3 Feb 2012 16:11:40 +0000 (11:11 -0500)
commit5f024b245789bbefc2ff45bb63a34625d110ef98
treed187098e480fa9f6f958327ec75a17cb9730b4d4
parentf56300df8d26a3e033f65b69b4f2155bcfc5ed78
syntax: use attributes names for parameters in implicit inits

Use the name of the attributes as the name of the parameters for the
implicit inits.
Also take care of removing the first '_' (old style) or '@' (new style)
used to name attributes.

Signed-off-by: Jean Privat <jean@pryen.org>
src/syntax/mmbuilder.nit
tests/sav/error_init_auto.sav
tests/sav/error_init_auto_alt2.sav