Lexical Structure

Python Java
Literals include numbers, strings, tuples, lists, and dictionaries.

Identifiers include the names of variables, classes, functions, and methods.

Reserved words include those of the major control statements (ifwhileforimport, etc.), operators (inis, etc.), definitions (defclass, etc.) and special values (TrueFalseNone, etc.).

Literals include numbers, characters, and strings.

Identifiers include the names of variables, classes, interfaces, and methods.

Reserved words include those of the major control statements (ifwhileforimport, etc.), operators (instanceofthrow, etc.), definitions (publicclass, etc.), special values (truefalsenullthissuper etc.), and standard type names (intdoubleString, etc.).

© Ken Lambert. All rights reserved.