err.c File Reference

#include "pcctscfg.h"
#include "pccts_stdio.h"
#include "charbuf.h"
#include "stringbuffer.h"
#include "libicl.h"
#include "libicl_private.h"
#include "glib.h"
#include <stdio.h>
#include "antlr.h"
#include "ast.h"
#include "tokens.h"
#include "dlgdef.h"
#include "err.h"

Go to the source code of this file.

Defines

#define ANTLR_VERSION   13333
#define AST_FIELDS   int isDefined; int type; char* tokenData; size_t tokenLen;
#define ZZCOL
#define USER_ZZSYN
#define ZZLEXBUFSIZE   10485760
#define zzcr_ast(ast, attr, ttype, text)
#define LL_K   2
#define zzSET_SIZE   8

Functions

ICLTermparser_getTermFromString (char *str, size_t len)
ICLTermparser_getTermFromStringDebug (char *str, size_t len)
int parser_getTermFromBuf (ICLTerm **result, stringbuffer_t *buf, int *lookedAhead)
int parser_getNetTermFromBuf (ICLTerm **result, stringbuffer_t *buf)
int parser_setDebug (int b)
void handleDblQuotedData ()
 Binary data isn't handled well by pccts, so we do it ourselves.

Variables

GByteArray * parser_dblQuoteBuf
char * parser_tmpStrIn
int parser_dblQuoteLen
int parser_error
ANTLRChar * zztokens [49]
SetWordType zzerr1 [8] = {0x2,0x0,0x0,0x0, 0x1,0x0,0x0,0x0}
SetWordType zzerr2 [8] = {0x0,0x4,0x0,0x0, 0x1,0x0,0x0,0x0}
SetWordType zzerr3 [8] = {0x0,0x0,0x14,0x0, 0x0,0x0,0x0,0x0}
SetWordType setwd1 [49]
SetWordType zzerr4 [8] = {0x0,0x0,0x80,0x1, 0x0,0x0,0x0,0x0}
SetWordType zzerr5 [8] = {0x0,0x0,0x0,0x6, 0x0,0x0,0x0,0x0}
SetWordType zzerr6 [8] = {0x0,0x5c,0xbd,0x3f, 0x9e,0x23,0x0,0x0}
SetWordType zzerr7 [8] = {0x2,0xfc,0xff,0x3f, 0x9f,0x23,0x0,0x0}
SetWordType setwd2 [49]
SetWordType zzerr8 [8] = {0x0,0x0,0xbc,0x3f, 0x80,0x21,0x0,0x0}
SetWordType zzerr9 [8] = {0x0,0xfc,0xbf,0x3f, 0x9e,0x23,0x0,0x0}
SetWordType zzerr10 [8] = {0x0,0x0,0x0,0x0, 0x6,0x0,0x1,0x0}
SetWordType setwd3 [49]
SetWordType zzerr11 [8] = {0x0,0x0,0x0,0x0, 0x6,0x0,0x0,0x0}
SetWordType zzerr12 [8] = {0x0,0x0,0x0,0x0, 0x6,0x0,0x0,0x0}
SetWordType zzerr13 [8] = {0x0,0x5c,0xa9,0x2f, 0x9e,0x23,0x0,0x0}
SetWordType zzerr14 [8] = {0x0,0xc,0xa8,0x2f, 0x80,0x21,0x0,0x0}
SetWordType zzerr15 [8] = {0x0,0x10,0x1,0x0, 0x0,0x0,0x0,0x0}
SetWordType setwd4 [49]
SetWordType setwd5 [49]


Detailed Description

Definition in file err.c.


Define Documentation

#define ANTLR_VERSION   13333

Definition at line 13 of file err.c.

#define AST_FIELDS   int isDefined; int type; char* tokenData; size_t tokenLen;

Definition at line 28 of file err.c.

#define LL_K   2

Definition at line 134 of file err.c.

#define USER_ZZSYN

Definition at line 32 of file err.c.

#define ZZCOL

Definition at line 30 of file err.c.

#define zzcr_ast ( ast,
attr,
ttype,
text   ) 

Definition at line 87 of file err.c.

#define ZZLEXBUFSIZE   10485760

Definition at line 35 of file err.c.

#define zzSET_SIZE   8

Definition at line 135 of file err.c.


Function Documentation

void handleDblQuotedData (  ) 

Binary data isn't handled well by pccts, so we do it ourselves.

This function relies on the fact that we use our own stringbuffer type to buffer intermediate data.

Definition at line 176 of file parser.c.

int parser_getNetTermFromBuf ( ICLTerm **  result,
stringbuffer_t buf 
)

Definition at line 717 of file parser.c.

int parser_getTermFromBuf ( ICLTerm **  result,
stringbuffer_t buf,
int *  lookedAhead 
)

Definition at line 654 of file parser.c.

ICLTerm * parser_getTermFromString ( char *  str,
size_t  len 
)

Definition at line 609 of file parser.c.

ICLTerm * parser_getTermFromStringDebug ( char *  str,
size_t  len 
)

Definition at line 613 of file parser.c.

int parser_setDebug ( int  b  ) 

Definition at line 255 of file parser.c.


Variable Documentation

GByteArray* parser_dblQuoteBuf

Definition at line 162 of file parser.c.

int parser_dblQuoteLen

Definition at line 161 of file parser.c.

int parser_error

Definition at line 159 of file parser.c.

char* parser_tmpStrIn

Definition at line 163 of file parser.c.

SetWordType setwd1[49]

Initial value:

 {0x0,0x7f,0x0,0x0,0x0,0x0,0x0,
  0x0,0x0,0x0,0x0,0x0,0x0,0x78,0x0,
  0x78,0x0,0x78,0x80,0x70,0x80,0x60,0x78,
  0x0,0x0,0x0,0x0,0x0,0x40,0x0,0x0,
  0x0,0x78,0x0,0x0,0x0,0x0,0x0,0x0,
  0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  0x0,0x0}

Definition at line 196 of file err.c.

SetWordType setwd2[49]

Initial value:

 {0x0,0x95,0x0,0x0,0x0,0x0,0x0,
  0x0,0x0,0x0,0xc0,0xc0,0xc0,0x95,0xc0,
  0x95,0xc0,0x95,0xb4,0xf5,0xb4,0xf5,0x95,
  0xf2,0xf2,0xe8,0xe8,0xf5,0xb5,0xe0,0x0,
  0x0,0x95,0xc0,0xc0,0xc0,0xc0,0x0,0x0,
  0xe0,0xe0,0xc0,0x0,0x0,0x0,0xe0,0x0,
  0x0,0x0}

Definition at line 207 of file err.c.

SetWordType setwd3[49]

Initial value:

 {0x0,0x83,0x0,0x0,0x0,0x0,0x0,
  0x0,0x0,0x0,0x8,0x8,0x8,0xb3,0x8,
  0xb3,0x8,0xb7,0x8b,0x8b,0x8b,0x8b,0x83,
  0x8b,0x8b,0x8b,0x8b,0x8b,0x8b,0x8,0x0,
  0x0,0x83,0x48,0x48,0x8,0x8,0x0,0x0,
  0x8,0x8,0x8,0x0,0x0,0x0,0x8,0x0,
  0x0,0x0}

Definition at line 217 of file err.c.

SetWordType setwd4[49]

Initial value:

 {0x0,0xf0,0x0,0x0,0x0,0x0,0x0,
  0x0,0x0,0x0,0x4,0x4,0x8,0xf0,0x0,
  0xf0,0x8,0xf3,0xf0,0xf4,0xf0,0xf4,0xf0,
  0xf4,0xf4,0xf4,0xf4,0xf4,0xf0,0x4,0x0,
  0x0,0xf0,0x0,0x0,0x0,0x0,0x0,0x0,
  0x4,0x4,0x0,0x0,0x0,0x0,0x4,0x0,
  0x0,0x0}

Definition at line 229 of file err.c.

SetWordType setwd5[49]

Initial value:

 {0x0,0x1,0x0,0x0,0x0,0x0,0x0,
  0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,
  0x1,0x0,0x1,0x1,0x1,0x1,0x1,0x1,
  0x1,0x1,0x1,0x1,0x1,0x1,0x0,0x0,
  0x0,0x1,0x0,0x0,0x0,0x0,0x0,0x0,
  0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
  0x0,0x0}

Definition at line 236 of file err.c.

SetWordType zzerr1[8] = {0x2,0x0,0x0,0x0, 0x1,0x0,0x0,0x0}

Definition at line 193 of file err.c.

SetWordType zzerr10[8] = {0x0,0x0,0x0,0x0, 0x6,0x0,0x1,0x0}

Definition at line 216 of file err.c.

SetWordType zzerr11[8] = {0x0,0x0,0x0,0x0, 0x6,0x0,0x0,0x0}

Definition at line 224 of file err.c.

SetWordType zzerr12[8] = {0x0,0x0,0x0,0x0, 0x6,0x0,0x0,0x0}

Definition at line 225 of file err.c.

SetWordType zzerr13[8] = {0x0,0x5c,0xa9,0x2f, 0x9e,0x23,0x0,0x0}

Definition at line 226 of file err.c.

SetWordType zzerr14[8] = {0x0,0xc,0xa8,0x2f, 0x80,0x21,0x0,0x0}

Definition at line 227 of file err.c.

SetWordType zzerr15[8] = {0x0,0x10,0x1,0x0, 0x0,0x0,0x0,0x0}

Definition at line 228 of file err.c.

SetWordType zzerr2[8] = {0x0,0x4,0x0,0x0, 0x1,0x0,0x0,0x0}

Definition at line 194 of file err.c.

SetWordType zzerr3[8] = {0x0,0x0,0x14,0x0, 0x0,0x0,0x0,0x0}

Definition at line 195 of file err.c.

SetWordType zzerr4[8] = {0x0,0x0,0x80,0x1, 0x0,0x0,0x0,0x0}

Definition at line 203 of file err.c.

SetWordType zzerr5[8] = {0x0,0x0,0x0,0x6, 0x0,0x0,0x0,0x0}

Definition at line 204 of file err.c.

SetWordType zzerr6[8] = {0x0,0x5c,0xbd,0x3f, 0x9e,0x23,0x0,0x0}

Definition at line 205 of file err.c.

SetWordType zzerr7[8] = {0x2,0xfc,0xff,0x3f, 0x9f,0x23,0x0,0x0}

Definition at line 206 of file err.c.

SetWordType zzerr8[8] = {0x0,0x0,0xbc,0x3f, 0x80,0x21,0x0,0x0}

Definition at line 214 of file err.c.

SetWordType zzerr9[8] = {0x0,0xfc,0xbf,0x3f, 0x9e,0x23,0x0,0x0}

Definition at line 215 of file err.c.

ANTLRChar* zztokens[49]

Definition at line 142 of file err.c.


Generated on Wed May 23 17:20:14 2007 using doxygen 1.5.2