|A Low-Rent Syntax Problem email@example.com (1990-08-28)|
|Re: A Low-Rent Syntax Problem firstname.lastname@example.org (1990-08-30)|
|Re: A Low-Rent Syntax Problem email@example.com.OZ.AU (1990-08-31)|
|Re: A Low-Rent Syntax Problem firstname.lastname@example.org (1990-09-04)|
|From:||email@example.com (Frank Adams)|
|Summary:||Put continuation character on continuation line.|
|Keywords:||lex, parse, design|
|Organization:||RPI CS Dept.|
|Date:||30 Aug 90 23:04:23 GMT|
In article <MCDANIEL.90Aug28144647@dolphin.adi.com> firstname.lastname@example.org (Tim McDaniel) writes:
>Another problem I've had with low-rent syntax is how to tell the
>lexer/parser to continue a source line.
>- "\" followed by newline is removed, as in C. However what does this
> a = 1 2 3 \// comment
> ? Or what about
> a = 1 2 3 // comment\
I have thought about this problem. My conclusion is that the continuation
character should go on the *next* line (like FORTRAN!). You can choose
between putting the continuation character as the first character of the
line, or the as the first non-blank character.
a = 1 2 3 // comment
\ 4 5 6
would continue the statement, not the comment.
Return to the
Search the comp.compilers archives again.