|C-- compiler email@example.com (1994-10-05)|
|Re: C-- compiler firstname.lastname@example.org (1994-10-11)|
|From:||email@example.com (Nick Barnes)|
|Organization:||Harlequin Ltd, Barrington Hall, Cambridge UK|
|Date:||Tue, 11 Oct 1994 10:01:35 GMT|
firstname.lastname@example.org (Germans DM) writes:
/* blah, blah */
The compiler goes: I expect a type specifier -> int, OK.
I expect an identifier -> stupid_function, OK.
I expect either a ; or a ( -> (, OK, it's a new function.
I expect a ) -> ERROR!
Here the compiler can do two things, either he can insert a ) and go on or
it can exchange the ; for a ) and go on.
Or it can scan forwards some limited distance looking for an
Or it can ditch the partially-built tree and scan forwards
indefinitely looking for the start of a new top-level declaration.
Nick Barnes email@example.com
Return to the
Search the comp.compilers archives again.