KJS::Lexer Class Reference

List of all members.


Detailed Description

Definition at line 35 of file lexer.h.


Public Types

enum  State {
  Start, IdentifierOrKeyword, Identifier, InIdentifierOrKeyword,
  InIdentifier, InIdentifierUnicodeEscapeStart, InIdentifierUnicodeEscape, InSingleLineComment,
  InMultiLineComment, InNum, InNum0, InHex,
  InOctal, InDecimal, InExponentIndicator, InExponent,
  Hex, Octal, Number, String,
  Eof, InString, InEscapeSequence, InHexEscape,
  InUnicodeEscape, Other, Bad
}

Public Member Functions

 Lexer ()
 ~Lexer ()
void setCode (const UChar *c, unsigned int len)
int lex ()
int lineNo () const
bool prevTerminator () const
bool scanRegExp ()
bool hadError () const
void doneParsing ()

Static Public Member Functions

static Lexercurr ()
static bool isWhiteSpace (unsigned short c)
static bool isIdentLetter (unsigned short c)
static bool isDecimalDigit (unsigned short c)
static bool isHexDigit (unsigned short c)
static bool isOctalDigit (unsigned short c)
static unsigned char convertHex (unsigned short c1)
static unsigned char convertHex (unsigned short c1, unsigned short c2)
static UChar convertUnicode (unsigned short c1, unsigned short c2, unsigned short c3, unsigned short c4)

Public Attributes

UString pattern
UString flags

Member Enumeration Documentation

Enumerator:
Start 
IdentifierOrKeyword 
Identifier 
InIdentifierOrKeyword 
InIdentifier 
InIdentifierUnicodeEscapeStart 
InIdentifierUnicodeEscape 
InSingleLineComment 
InMultiLineComment 
InNum 
InNum0 
InHex 
InOctal 
InDecimal 
InExponentIndicator 
InExponent 
Hex 
Octal 
Number 
String 
Eof 
InString 
InEscapeSequence 
InHexEscape 
InUnicodeEscape 
Other 
Bad 

Definition at line 48 of file lexer.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys