Slight mistake in the documentation

Joe Thornber joe.thornber at gmail.com
Thu Feb 12 04:21:40 EST 2009


Benedikt,

Patch attached.

- Joe


2009/2/10 Gregory Crosswhite <gcrosswhite at gmail.com>:
> Hey everyone,
>
> First, thank you so much for creating this library!  I looked around
> at a number of parsers and this was the obvious one to choose because
> of the very nice documentation that make it very easy to see how the
> internal representation of the AST is structured.
>
> I apologize if this is not the correct venue for this posting, but
> there is a slight mistake in the documentation.  One of your examples
> for an initialization list using array designators (just under "type
> CInitList = ...") is:
>
>         -- { [0], [3] = 4, [2] = 5, 8 }
>
> However, this does not actually parse.  The correct example should be
>
>         -- { [0] [3] = 4, [2] = 5, 8 }
>
> i.e., with the comma removed between [0] and [3].
>
> I point this out because I was testing my own code's ability to
> correctly handle designators, and this mistake confused me as to what
> their proper syntax was, so it would be nice if you could fix it so
> that the next person is not confused.  :-)
>
> Thanks again,
> Greg
>
>
> _______________________________________________
> Language-c mailing list
> Language-c at projects.haskell.org
> http://projects.haskell.org/cgi-bin/mailman/listinfo/language-c
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: documentation_fluff
Type: application/octet-stream
Size: 49359 bytes
Desc: not available
Url : http://projects.haskell.org/pipermail/language-c/attachments/20090212/868c59ce/attachment-0001.obj 


More information about the Language-c mailing list