A lexical element is a component from which you can construct a script. It is the smallest (or most atomic) fragment that a script can be decomposed into to allow the execution mechanisms in the interpreter to operate. Each lexical element is represented by a token and the script is tokenized through a process of lexical analysis.
The following lexical elements are used to construct a script:
Whitespace
Line terminator
Literal (Constant)
Identifier
Keyword
Reserved word
Operator
Punctuator
Comment
Prev | Home | Next |
Lexical convention | Up | Lexical scoping |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |