41 void setCode(
const UChar *c,
unsigned int len);
44 int lineNo()
const {
return yylineno + 1; }
46 bool prevTerminator()
const {
return terminator; }
51 InIdentifierOrKeyword,
53 InIdentifierUnicodeEscapeStart,
54 InIdentifierUnicodeEscape,
77 UString pattern, flags;
78 bool hadError()
const {
return foundBad; }
80 static bool isWhiteSpace(
unsigned short c);
81 static bool isIdentLetter(
unsigned short c);
82 static bool isDecimalDigit(
unsigned short c);
83 static bool isHexDigit(
unsigned short c);
84 static bool isOctalDigit(
unsigned short c);
91 unsigned int size8, size16;
92 unsigned int pos8, pos16;
99 bool convertNextIdentifier;
105 void setDone(State s);
107 void shift(
unsigned int p);
109 int lookupKeyword(
const char *);
111 int matchPunctuator(
unsigned short c1,
unsigned short c2,
112 unsigned short c3,
unsigned short c4);
113 unsigned short singleEscape(
unsigned short c)
const;
114 unsigned short convertOctal(
unsigned short c1,
unsigned short c2,
115 unsigned short c3)
const;
117 static unsigned char convertHex(
unsigned short c1);
118 static unsigned char convertHex(
unsigned short c1,
unsigned short c2);
119 static UChar convertUnicode(
unsigned short c1,
unsigned short c2,
120 unsigned short c3,
unsigned short c4);
126 static void globalClear();
133 void record8(
unsigned short c);
134 void record16(
int c);
135 void record16(UChar c);
138 UString *makeUString(UChar *buffer,
unsigned int pos);
143 #ifndef KJS_PURE_ECMA
148 int current, next1, next2, next3;
151 unsigned int numStrings;
152 unsigned int stringsCapacity;
155 unsigned int numIdentifiers;
156 unsigned int identifiersCapacity;