40 void setCode(
const UChar *c,
unsigned int len);
43 int lineNo()
const {
return yylineno + 1; }
45 bool prevTerminator()
const {
return terminator; }
50 InIdentifierOrKeyword,
52 InIdentifierUnicodeEscapeStart,
53 InIdentifierUnicodeEscape,
76 UString pattern, flags;
77 bool hadError()
const {
return foundBad; }
79 static bool isWhiteSpace(
unsigned short c);
80 static bool isIdentLetter(
unsigned short c);
81 static bool isDecimalDigit(
unsigned short c);
82 static bool isHexDigit(
unsigned short c);
83 static bool isOctalDigit(
unsigned short c);
90 unsigned int size8, size16;
91 unsigned int pos8, pos16;
98 bool convertNextIdentifier;
104 void setDone(State s);
106 void shift(
unsigned int p);
108 int lookupKeyword(
const char *);
110 int matchPunctuator(
unsigned short c1,
unsigned short c2,
111 unsigned short c3,
unsigned short c4);
112 unsigned short singleEscape(
unsigned short c)
const;
113 unsigned short convertOctal(
unsigned short c1,
unsigned short c2,
114 unsigned short c3)
const;
116 static unsigned char convertHex(
unsigned short c1);
117 static unsigned char convertHex(
unsigned short c1,
unsigned short c2);
118 static UChar convertUnicode(
unsigned short c1,
unsigned short c2,
119 unsigned short c3,
unsigned short c4);
125 static void globalClear();
132 void record8(
unsigned short c);
133 void record16(
int c);
134 void record16(UChar c);
137 UString *makeUString(UChar *buffer,
unsigned int pos);
142 #ifndef KJS_PURE_ECMA
147 int current, next1, next2, next3;
150 unsigned int numStrings;
151 unsigned int stringsCapacity;
154 unsigned int numIdentifiers;
155 unsigned int identifiersCapacity;
Represents an Identifier for a Javascript object.