1679 parenIndex =
state->parenCount;
1686 if (operatorSP >= operandSP) {
1693 switch (*
state->cp) {
1697 *
state->cp ==
'?' &&
1698 (
state->cp[1] ==
'=' ||
1699 state->cp[1] ==
'!' ||
1700 state->cp[1] ==
':')) {
1701 switch (
state->cp[1]) {
1705 state->progLength += 4;
1710 state->progLength += 4;
1722 state->parenCount++;
1723 if (
state->parenCount == 65535) {
1725 JSMSG_TOO_MANY_PARENS);
1735 for (
i = operatorSP - 1; ;
i--) {
1738 JSMSG_UNMATCHED_RIGHT_PAREN);
1760 operand =
state->result;
1762 if (operandSP == operandStackSize) {
1764 operandStackSize += operandStackSize;
1770 operandStack[operandSP++] = operand;
1778 while (operatorSP) {
1781 operandStack, operandSP))
1786 state->result = operandStack[0];
1791 switch (*
state->cp) {
1795 while (operatorSP &&
1799 operandStack, operandSP)) {
1811 for (
i = operatorSP - 1; ;
i--) {
1814 JSMSG_UNMATCHED_RIGHT_PAREN);
1830 switch (operatorStack[operatorSP].
op) {
1840 operand->
kid = operandStack[operandSP - 1];
1841 operandStack[operandSP - 1] = operand;
1844 JSMSG_REGEXP_TOO_COMPLEX);
1851 state->result = operandStack[operandSP - 1];
1854 operandStack[operandSP - 1] =
state->result;
1855 goto restartOperator;
1858 operandStack, operandSP))
1895 if (operatorSP == operatorStackSize) {
1897 operatorStackSize += operatorStackSize;
1901 operatorStack = tmp;
1903 operatorStack[operatorSP].
op =
op;
1905 operatorStack[operatorSP++].
parenIndex = parenIndex;
static BOOL ParseTerm(CompilerState *state)
static void * heap_realloc(void *mem, size_t len)
static void * heap_alloc(size_t len)
#define ReportRegExpError(a, b, c)
static BOOL ProcessOp(CompilerState *state, REOpData *opData, RENode **operandStack, INT operandSP)
static RENode * NewRENode(CompilerState *state, REOp op)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static BOOL ParseQuantifier(CompilerState *state)
#define INITIAL_STACK_SIZE
#define ReportRegExpErrorHelper(a, b, c, d)
static size_t GetCompactIndexWidth(size_t index)
static INT ParseMinMaxQuantifier(CompilerState *state, BOOL ignoreValues)
static BOOL heap_free(void *mem)