The following token classes for lexer analyzer are listed in the lexical grammar of ECMAScript:
InputElementDiv::
WhiteSpace
LineTerminator
Comment
CommonToken
DivPunctuator
RightBracePunctuator
InputElementRegExp::
WhiteSpace
LineTerminator
Comment
CommonToken
RightBracePunctuator
RegularExpressionLiteral
InputElementRegExpOrTemplateTail::
WhiteSpace
LineTerminator
Comment
CommonToken
RegularExpressionLiteral
TemplateSubstitutionTail
InputElementTemplateTail::
WhiteSpace
LineTerminator
Comment
CommonToken
DivPunctuator
TemplateSubstitutionTail
While I understand nested classes, such as WhiteSpace, LineTerminatorI do not understand, what are the top-level classes: InputElementDiv, InputElementRegExp, InputElementRegExpOrTemplateTailand InputElementTemplateTail. Can anyone clarify?
source
share