Java Reference
In-Depth Information
For example, in this simple piece of code:
class Empty {
}
we say that the } token is to the right of the { token, even though it appears, in this
two-dimensional representation, downward and to the left of the { token. This con-
vention about the use of the words left and right allows us to speak, for example, of
the right-hand operand of a binary operator or of the left-hand side of an assignment.
3.6. White Space
White space is defined as the ASCII space character, horizontal tab character, form feed
character, and line terminator characters (§ 3.4 ).
WhiteSpace:
the ASCII SP character, also known as "space"
the ASCII HT character, also known as "horizontal tab"
the ASCII FF character, also known as "form feed"
LineTerminator
3.7. Comments
There are two kinds of comments.
/* text */
A traditional comment : all the text from the ASCII characters /* to the ASCII
characters */ is ignored (as in C and C++).
// text
An end-of-line comment : all the text from the ASCII characters // to the end of the
line is ignored (as in C++).
Comment:
TraditionalComment
EndOfLineComment
TraditionalComment:
/ * CommentTail
EndOfLineComment:
/ / CharactersInLine opt
CommentTail:
* CommentTailStar
Search WWH ::




Custom Search