[Mono-devel-list] Patch for full-featured mcs /doc support

Gaurav Vaish gaurav.vaish at gmail.com
Fri Nov 26 07:40:33 EST 2004


> > - : IDENTIFIER
> > + : IDENTIFIER
> > + {
> > + tmpComment = Lexer.consume_doc_comment ();
> > + Lexer.doc_state = XmlCommentState.OK;
> > + }
> > OPEN_PARENS opt_formal_parameter_list CLOSE_PARENS
> > {
> > oob_stack.Push (lexer.Location);
> >
> > - current_local_parameters = (Parameters) $3;
> > + current_local_parameters = (Parameters) $4;
> > }
> > opt_constructor_initializer
> > {
> > Location l = (Location) oob_stack.Pop ();
> > - $$ = new Constructor (current_class, (string) $1, 0, (Parameters) $3,
> > - (ConstructorInitializer) $6, l);
> > + $$ = new Constructor (current_class, (string) $1, 0, (Parameters) $4,
> > + (ConstructorInitializer) $7, l);
> > }
> >
> > I am confuse, what has been changed.
> 
> I cannot understand what you mean. It should not be regarded as
> confusion, since it must happen whenever any of you guys have to
> insert logic between tokens.

  Let me attempt to explain.

Marek:

  Atsushi added an entry between IDENTIFIER and OPEN_PARENS and hence
need to update the references, $3 becomes $4, $4 becomes $5 and so on.

  Hope that explains.

Cheers,
Gaurav



More information about the Mono-devel-list mailing list