Java Reference
In-Depth Information
Token representations are enclosed in <>;
[x] indicates x is optional, that is, zero or one occurrence of x;
fxg indicates zero or more occurrences of x;
xjy indicates x or y;
x indicates negation of x;
Parentheses are used for grouping;
Level numbers in expressions indicate precedence.
B.6.1 Lexical Grammar
White Space
White space in j-- is defined as the ASCII space ( SP ), horizontal tab ( HT ), and form feed
( FF ) characters, as well as line terminators: line feed ( LF ), carriage return ( CR ), and carriage
return ( CR ) followed by line feed ( LF ).
Comments
j-- supports single-line comments; all the text from the ASCII characters // to the end of
the line is ignored.
Reserved Words
The following tokens are reserved for use as keywords in j-- and cannot be used as identifiers:
abstract extends int protected this
boolean false new public true
char import null return void
class if package static while
else instanceof private super
Operators
The following tokens serve as operators in j--:
= == > ++ && <= ! - -- + += *
Separators
The following tokens serve as separators in j--:
, . [ { ( ) } ] ;
Identiers
The following regular expression describes identifiers in j--:
<identifier>=(a-z|A-Z|_|$){a-z|A-Z|_|0-9|$}
 
Search WWH ::




Custom Search