The Java® Language Specification, Java SE 8 Edition
by James Gosling, Bill Joy, Guy L. Steele Jr., Gilad Bracha, Alex Buckley
Chapter 19. Syntax
This chapter repeats the syntactic grammar given in Chapters 4, 6-10, 14, and 15, as well as key parts of the lexical grammar from Chapter 3, using the notation from §2.4.
Productions from §3 (Lexical Structure)
Identifier: IdentifierChars but not a Keyword or BooleanLiteral or NullLiteralIdentifierChars: JavaLetter {JavaLetterOrDigit}JavaLetter: any Unicode character that is a “Java letter”JavaLetterOrDigit: any Unicode character that is a “Java letter-or-digit”Literal: IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral NullLiteral
Productions from §4 (Types, Values, and Variables)
Type: PrimitiveType ReferenceTypePrimitiveType: {Annotation} NumericType
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access