tclParse.c File Reference

#include "tclInt.h"

Go to the source code of this file.

Defines

#define TYPE_NORMAL   0
#define TYPE_SPACE   0x1
#define TYPE_COMMAND_END   0x2
#define TYPE_SUBS   0x4
#define TYPE_QUOTE   0x8
#define TYPE_CLOSE_PAREN   0x10
#define TYPE_CLOSE_BRACK   0x20
#define TYPE_BRACE   0x40
#define CHAR_TYPE(c)   (charTypeTable+128)[(int)(c)]

Functions

void TclParseInit (Tcl_Interp *interp, const char *start, int numBytes, Tcl_Parse *parsePtr)
int Tcl_ParseCommand (Tcl_Interp *interp, const char *start, register int numBytes, int nested, register Tcl_Parse *parsePtr)
int TclParseAllWhiteSpace (const char *src, int numBytes)
int TclParseHex (const char *src, int numBytes, Tcl_UniChar *resultPtr)
int TclParseBackslash (const char *src, int numBytes, int *readPtr, char *dst)
void Tcl_FreeParse (Tcl_Parse *parsePtr)
int Tcl_ParseVarName (Tcl_Interp *interp, const char *start, register int numBytes, Tcl_Parse *parsePtr, int append)
const char * Tcl_ParseVar (Tcl_Interp *interp, register const char *start, const char **termPtr)
int Tcl_ParseBraces (Tcl_Interp *interp, const char *start, register int numBytes, register Tcl_Parse *parsePtr, int append, const char **termPtr)
int Tcl_ParseQuotedString (Tcl_Interp *interp, const char *start, register int numBytes, register Tcl_Parse *parsePtr, int append, const char **termPtr)
Tcl_ObjTcl_SubstObj (Tcl_Interp *interp, Tcl_Obj *objPtr, int flags)
int TclSubstTokens (Tcl_Interp *interp, Tcl_Token *tokenPtr, int count, int *tokensLeftPtr, int line)
int Tcl_CommandComplete (const char *script)
int TclObjCommandComplete (Tcl_Obj *objPtr)
int TclIsLocalScalar (const char *src, int len)


Define Documentation

#define CHAR_TYPE (  )     (charTypeTable+128)[(int)(c)]

Definition at line 55 of file tclParse.c.

Referenced by Tcl_ParseBraces(), and TclIsLocalScalar().

#define TYPE_BRACE   0x40

Definition at line 53 of file tclParse.c.

#define TYPE_CLOSE_BRACK   0x20

Definition at line 52 of file tclParse.c.

Referenced by Tcl_ParseCommand().

#define TYPE_CLOSE_PAREN   0x10

Definition at line 51 of file tclParse.c.

Referenced by Tcl_ParseVarName().

#define TYPE_COMMAND_END   0x2

Definition at line 48 of file tclParse.c.

Referenced by Tcl_ParseCommand(), and TclIsLocalScalar().

#define TYPE_NORMAL   0

Definition at line 46 of file tclParse.c.

Referenced by Tcl_ParseBraces(), and TclIsLocalScalar().

#define TYPE_QUOTE   0x8

Definition at line 50 of file tclParse.c.

Referenced by Tcl_ParseQuotedString().

#define TYPE_SPACE   0x1

Definition at line 47 of file tclParse.c.

Referenced by Tcl_ParseCommand().

#define TYPE_SUBS   0x4

Definition at line 49 of file tclParse.c.


Function Documentation

int Tcl_CommandComplete ( const char *  script  ) 

Definition at line 2354 of file tclParse.c.

int Tcl_ParseBraces ( Tcl_Interp interp,
const char *  start,
register int  numBytes,
register Tcl_Parse parsePtr,
int  append,
const char **  termPtr 
)

int Tcl_ParseQuotedString ( Tcl_Interp interp,
const char *  start,
register int  numBytes,
register Tcl_Parse parsePtr,
int  append,
const char **  termPtr 
)

const char* Tcl_ParseVar ( Tcl_Interp interp,
register const char *  start,
const char **  termPtr 
)

int TclObjCommandComplete ( Tcl_Obj objPtr  ) 

Definition at line 2379 of file tclParse.c.

References Tcl_GetStringFromObj().

Referenced by Tcl_Main().

int TclParseAllWhiteSpace ( const char *  src,
int  numBytes 
)

Definition at line 676 of file tclParse.c.

Referenced by Tcl_OpenObjCmd(), and TclCompileExpr().

int TclParseBackslash ( const char *  src,
int  numBytes,
int *  readPtr,
char *  dst 
)

int TclParseHex ( const char *  src,
int  numBytes,
Tcl_UniChar resultPtr 
)

Definition at line 716 of file tclParse.c.

References UCHAR.

Referenced by TclParseBackslash().



Generated on Wed Mar 12 12:18:33 2008 by  doxygen 1.5.1