kjs Library API Documentation

KJS::Lexer Class Reference

Collaboration diagram for KJS::Lexer:

Collaboration graph
[legend]
List of all members.

Public Types

enum  State {
  Start, Identifier, InIdentifier, 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

Detailed Description

Definition at line 35 of file lexer.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kjs Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 15 10:35:53 2005 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003