pycode.cpp File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <qvaluestack.h>
#include "pycode.h"
#include "message.h"
#include "scanner.h"
#include "entry.h"
#include "doxygen.h"
#include "outputlist.h"
#include "util.h"
#include "membername.h"
#include "searchindex.h"
#include <unistd.h>

Go to the source code of this file.

Classes

struct  yy_buffer_state
struct  yy_trans_info
class  PyVariableContext
class  PyVariableContext::Scope
class  PyCallContext
struct  PyCallContext::Ctx

Defines

#define YY_INT_ALIGNED   short int
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   33
#define FLEX_BETA
#define INT8_MIN   (-128)
#define INT16_MIN   (-32767-1)
#define INT32_MIN   (-2147483647-1)
#define INT8_MAX   (127)
#define INT16_MAX   (32767)
#define INT32_MAX   (2147483647)
#define UINT8_MAX   (255U)
#define UINT16_MAX   (65535U)
#define UINT32_MAX   (4294967295U)
#define yyconst
#define YY_NULL   0
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
#define BEGIN   (yy_start) = 1 + 2 *
#define YY_START   (((yy_start) - 1) / 2)
#define YYSTATE   YY_START
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
#define YY_NEW_FILE   pycodeYYrestart(pycodeYYin )
#define YY_END_OF_BUFFER_CHAR   0
#define YY_BUF_SIZE   262144
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
#define EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#define YY_LESS_LINENO(n)
#define yyless(n)
#define unput(c)   yyunput( c, (yytext_ptr) )
#define YY_BUFFER_NEW   0
#define YY_BUFFER_NORMAL   1
#define YY_BUFFER_EOF_PENDING   2
#define YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
#define YY_FLUSH_BUFFER   pycodeYY_flush_buffer(YY_CURRENT_BUFFER )
#define yy_new_buffer   pycodeYY_create_buffer
#define yy_set_interactive(is_interactive)
#define yy_set_bol(at_bol)
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
#define pycodeYYwrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   pycodeYYtext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   56
#define YY_END_OF_BUFFER   57
#define YY_TRAILING_MASK   0x2000
#define YY_TRAILING_HEAD_MASK   0x4000
#define REJECT
#define yymore()   yymore_used_but_not_detected
#define YY_MORE_ADJ   0
#define YY_RESTORE_YY_MORE_OFFSET
#define YY_NEVER_INTERACTIVE   1
#define YY_INPUT(buf, result, max_size)   result=yyread(buf,max_size);
#define INITIAL   0
#define Body   1
#define FunctionDec   2
#define FunctionParams   3
#define ClassDec   4
#define ClassInheritance   5
#define Suite   6
#define SuiteCaptureIndent   7
#define SuiteStart   8
#define SuiteMaintain   9
#define SuiteContinuing   10
#define LongString   11
#define SingleQuoteString   12
#define DoubleQuoteString   13
#define TripleString   14
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define ECHO   (void) fwrite( pycodeYYtext, pycodeYYleng, 1, pycodeYYout )
#define yyterminate()   return YY_NULL
#define YY_START_STACK_INCR   25
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
#define YY_DECL_IS_OURS   1
#define YY_DECL   int pycodeYYlex (void)
#define YY_BREAK   break;
#define YY_RULE_SETUP   YY_USER_ACTION
#define YY_EXIT_FAILURE   2
#define yyless(n)
#define YYTABLES_NAME   "yytables"

Typedefs

typedef signed char flex_int8_t
typedef short int flex_int16_t
typedef int flex_int32_t
typedef unsigned char flex_uint8_t
typedef unsigned short int flex_uint16_t
typedef unsigned int flex_uint32_t
typedef yy_buffer_stateYY_BUFFER_STATE
typedef unsigned int yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Functions

void pycodeYYrestart (FILE *input_file)
void pycodeYY_switch_to_buffer (YY_BUFFER_STATE new_buffer)
YY_BUFFER_STATE pycodeYY_create_buffer (FILE *file, int size)
void pycodeYY_delete_buffer (YY_BUFFER_STATE b)
void pycodeYY_flush_buffer (YY_BUFFER_STATE b)
void pycodeYYpush_buffer_state (YY_BUFFER_STATE new_buffer)
void pycodeYYpop_buffer_state (void)
YY_BUFFER_STATE pycodeYY_scan_buffer (char *base, yy_size_t size)
YY_BUFFER_STATE pycodeYY_scan_string (yyconst char *yy_str)
YY_BUFFER_STATE pycodeYY_scan_bytes (yyconst char *bytes, int len)
void * pycodeYYalloc (yy_size_t)
void * pycodeYYrealloc (void *, yy_size_t)
void pycodeYYfree (void *)
int pycodeYYlex (void)
int pycodeYYget_lineno (void)
FILE * pycodeYYget_in (void)
FILE * pycodeYYget_out (void)
int pycodeYYget_leng (void)
char * pycodeYYget_text (void)
void pycodeYYset_lineno (int line_number)
void pycodeYYset_in (FILE *in_str)
void pycodeYYset_out (FILE *out_str)
int pycodeYYget_debug (void)
void pycodeYYset_debug (int bdebug)
int pycodeYYlex_destroy (void)
void resetPythonCodeParserState ()
void parsePythonCode (CodeOutputInterface &od, const char *className, const QCString &s, bool exBlock, const char *exName, FileDef *fd, int startLine, int endLine, bool inlineFragment, MemberDef *)

Variables

int pycodeYYleng
FILE * pycodeYYin
FILE * pycodeYYout
int pycodeYYleng
FILE * pycodeYYin = (FILE *) 0
FILE * pycodeYYout = (FILE *) 0
int pycodeYYlineno
int pycodeYYlineno = 1
char * pycodeYYtext
int pycodeYY_flex_debug
int pycodeYY_flex_debug = 0
char * pycodeYYtext


Define Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 123 of file pycode.cpp.

#define Body   1

Definition at line 1823 of file pycode.cpp.

#define ClassDec   4

Definition at line 1826 of file pycode.cpp.

#define ClassInheritance   5

Definition at line 1827 of file pycode.cpp.

#define DoubleQuoteString   13

Definition at line 1835 of file pycode.cpp.

#define ECHO   (void) fwrite( pycodeYYtext, pycodeYYleng, 1, pycodeYYout )

Definition at line 1892 of file pycode.cpp.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 158 of file pycode.cpp.

#define EOB_ACT_END_OF_FILE   1

Definition at line 159 of file pycode.cpp.

#define EOB_ACT_LAST_MATCH   2

Definition at line 160 of file pycode.cpp.

#define FLEX_BETA

Definition at line 13 of file pycode.cpp.

#define FLEX_SCANNER

Definition at line 8 of file pycode.cpp.

#define FunctionDec   2

Definition at line 1824 of file pycode.cpp.

#define FunctionParams   3

Definition at line 1825 of file pycode.cpp.

#define INITIAL   0

Definition at line 1822 of file pycode.cpp.

#define INT16_MAX   (32767)

Definition at line 72 of file pycode.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 63 of file pycode.cpp.

#define INT32_MAX   (2147483647)

Definition at line 75 of file pycode.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 66 of file pycode.cpp.

#define INT8_MAX   (127)

Definition at line 69 of file pycode.cpp.

#define INT8_MIN   (-128)

Definition at line 60 of file pycode.cpp.

#define LongString   11

Definition at line 1833 of file pycode.cpp.

#define pycodeYYwrap (  )     1

Definition at line 338 of file pycode.cpp.

#define REJECT

Value:

{ \
*yy_cp = (yy_hold_char); /* undo effects of setting up pycodeYYtext */ \
yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
(yy_lp) = yy_full_lp; /* restore orig. accepting pos. */ \
(yy_state_ptr) = yy_full_state; /* restore orig. state */ \
yy_current_state = *(yy_state_ptr); /* restore curr. state */ \
++(yy_lp); \
goto find_rule; \
}

Definition at line 979 of file pycode.cpp.

#define SingleQuoteString   12

Definition at line 1834 of file pycode.cpp.

#define Suite   6

Definition at line 1828 of file pycode.cpp.

#define SuiteCaptureIndent   7

Definition at line 1829 of file pycode.cpp.

#define SuiteContinuing   10

Definition at line 1832 of file pycode.cpp.

#define SuiteMaintain   9

Definition at line 1831 of file pycode.cpp.

#define SuiteStart   8

Definition at line 1830 of file pycode.cpp.

#define TripleString   14

Definition at line 1836 of file pycode.cpp.

#define UINT16_MAX   (65535U)

Definition at line 81 of file pycode.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 84 of file pycode.cpp.

#define UINT8_MAX   (255U)

Definition at line 78 of file pycode.cpp.

#define unput (  )     yyunput( c, (yytext_ptr) )

Definition at line 178 of file pycode.cpp.

 
#define YY_AT_BOL (  )     (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 334 of file pycode.cpp.

#define YY_BREAK   break;

Definition at line 1971 of file pycode.cpp.

#define YY_BUF_SIZE   262144

Definition at line 142 of file pycode.cpp.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 250 of file pycode.cpp.

#define YY_BUFFER_NEW   0

Definition at line 238 of file pycode.cpp.

#define YY_BUFFER_NORMAL   1

Definition at line 239 of file pycode.cpp.

#define YY_CURRENT_BUFFER

Value:

( (yy_buffer_stack) \
                          ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
                          : NULL)

Definition at line 266 of file pycode.cpp.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 273 of file pycode.cpp.

#define YY_DECL   int pycodeYYlex (void)

Definition at line 1959 of file pycode.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 1955 of file pycode.cpp.

#define YY_DO_BEFORE_ACTION

Value:

(yytext_ptr) = yy_bp; \
        pycodeYYleng = (size_t) (yy_cp - yy_bp); \
        (yy_hold_char) = *yy_cp; \
        *yy_cp = '\0'; \
        (yy_c_buf_p) = yy_cp;

Definition at line 362 of file pycode.cpp.

#define YY_END_OF_BUFFER   57

Definition at line 370 of file pycode.cpp.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 138 of file pycode.cpp.

#define YY_EXIT_FAILURE   2

Definition at line 3413 of file pycode.cpp.

#define YY_EXTRA_TYPE   void *

Definition at line 1847 of file pycode.cpp.

#define YY_FATAL_ERROR ( msg   )     yy_fatal_error( msg )

Definition at line 1946 of file pycode.cpp.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 9 of file pycode.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 10 of file pycode.cpp.

#define YY_FLEX_SUBMINOR_VERSION   33

Definition at line 11 of file pycode.cpp.

#define YY_FLUSH_BUFFER   pycodeYY_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 302 of file pycode.cpp.

#define YY_INPUT ( buf,
result,
max_size   )     result=yyread(buf,max_size);

Definition at line 1793 of file pycode.cpp.

#define YY_INT_ALIGNED   short int

Definition at line 4 of file pycode.cpp.

#define YY_LESS_LINENO (  ) 

Definition at line 162 of file pycode.cpp.

#define YY_MORE_ADJ   0

Definition at line 991 of file pycode.cpp.

#define YY_NEVER_INTERACTIVE   1

Definition at line 1033 of file pycode.cpp.

#define yy_new_buffer   pycodeYY_create_buffer

Definition at line 312 of file pycode.cpp.

#define YY_NEW_FILE   pycodeYYrestart(pycodeYYin )

Definition at line 136 of file pycode.cpp.

#define YY_NULL   0

Definition at line 110 of file pycode.cpp.

#define YY_NUM_RULES   56

Definition at line 369 of file pycode.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 1884 of file pycode.cpp.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 992 of file pycode.cpp.

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 1974 of file pycode.cpp.

#define YY_SC_TO_UI (  )     ((unsigned int) (unsigned char) c)

Definition at line 117 of file pycode.cpp.

#define yy_set_bol ( at_bol   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){\
        pycodeYYensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            pycodeYY_create_buffer(pycodeYYin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
        }

Definition at line 324 of file pycode.cpp.

#define yy_set_interactive ( is_interactive   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){ \
        pycodeYYensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            pycodeYY_create_buffer(pycodeYYin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
        }

Definition at line 314 of file pycode.cpp.

#define YY_SKIP_YYWRAP

Definition at line 339 of file pycode.cpp.

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 129 of file pycode.cpp.

#define YY_START_STACK_INCR   25

Definition at line 1941 of file pycode.cpp.

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 147 of file pycode.cpp.

#define YY_STATE_EOF ( state   )     (YY_END_OF_BUFFER + state + 1)

Definition at line 133 of file pycode.cpp.

#define YY_TRAILING_HEAD_MASK   0x4000

Definition at line 978 of file pycode.cpp.

#define YY_TRAILING_MASK   0x2000

Definition at line 977 of file pycode.cpp.

#define yyconst

Definition at line 106 of file pycode.cpp.

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up pycodeYYtext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                pycodeYYtext[pycodeYYleng] = (yy_hold_char); \
                (yy_c_buf_p) = pycodeYYtext + yyless_macro_arg; \
                (yy_hold_char) = *(yy_c_buf_p); \
                *(yy_c_buf_p) = '\0'; \
                pycodeYYleng = yyless_macro_arg; \
                } \
        while ( 0 )

Definition at line 3425 of file pycode.cpp.

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up pycodeYYtext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                *yy_cp = (yy_hold_char); \
                YY_RESTORE_YY_MORE_OFFSET \
                (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
                YY_DO_BEFORE_ACTION; /* set up pycodeYYtext again */ \
                } \
        while ( 0 )

Definition at line 3425 of file pycode.cpp.

 
#define yymore (  )     yymore_used_but_not_detected

Definition at line 990 of file pycode.cpp.

#define YYSTATE   YY_START

Definition at line 130 of file pycode.cpp.

#define YYTABLES_NAME   "yytables"

Definition at line 3623 of file pycode.cpp.

 
#define yyterminate (  )     return YY_NULL

Definition at line 1936 of file pycode.cpp.

#define yytext_ptr   pycodeYYtext

Definition at line 352 of file pycode.cpp.


Typedef Documentation

typedef short int flex_int16_t

Definition at line 51 of file pycode.cpp.

typedef int flex_int32_t

Definition at line 52 of file pycode.cpp.

typedef signed char flex_int8_t

Definition at line 50 of file pycode.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 54 of file pycode.cpp.

typedef unsigned int flex_uint32_t

Definition at line 55 of file pycode.cpp.

typedef unsigned char flex_uint8_t

Definition at line 53 of file pycode.cpp.

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 151 of file pycode.cpp.

typedef unsigned char YY_CHAR

Definition at line 341 of file pycode.cpp.

typedef unsigned int yy_size_t

Definition at line 187 of file pycode.cpp.

typedef int yy_state_type

Definition at line 345 of file pycode.cpp.


Function Documentation

void parsePythonCode ( CodeOutputInterface od,
const char *  className,
const QCString &  s,
bool  exBlock,
const char *  exName,
FileDef fd,
int  startLine,
int  endLine,
bool  inlineFragment,
MemberDef  
)

Definition at line 3673 of file pycode.cpp.

References CodeOutputInterface::endCodeLine(), pycodeYYin, pycodeYYlex(), and pycodeYYrestart().

Referenced by PythonLanguageScanner::parseCode().

YY_BUFFER_STATE pycodeYY_create_buffer ( FILE *  file,
int  size 
)

void pycodeYY_delete_buffer ( YY_BUFFER_STATE  b  ) 

Referenced by pycodeYYlex_destroy(), and pycodeYYpop_buffer_state().

void pycodeYY_flush_buffer ( YY_BUFFER_STATE  b  ) 

Discard all buffered characters. On the next scan, YY_INPUT will be called.

Parameters:
b the buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 3209 of file pycode.cpp.

References yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_buffer_state::yy_n_chars.

YY_BUFFER_STATE pycodeYY_scan_buffer ( char *  base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters:
base the character buffer
size the size in bytes of the character buffer
Returns:
the newly allocated buffer state object.

Definition at line 3332 of file pycode.cpp.

References pycodeYY_switch_to_buffer(), pycodeYYalloc(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, yy_buffer_state::yy_is_interactive, yy_buffer_state::yy_is_our_buffer, and yy_buffer_state::yy_n_chars.

Referenced by pycodeYY_scan_bytes().

YY_BUFFER_STATE pycodeYY_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len 
)

Setup the input buffer state to scan the given bytes. The next call to pycodeYYlex() will scan from a copy of bytes.

Parameters:
bytes the byte buffer to scan
len the number of bytes in the buffer pointed to by bytes.
Returns:
the newly allocated buffer state object.

Definition at line 3382 of file pycode.cpp.

References pycodeYY_scan_buffer(), pycodeYYalloc(), YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.

Referenced by pycodeYY_scan_string().

YY_BUFFER_STATE pycodeYY_scan_string ( yyconst char *  yystr  ) 

Setup the input buffer state to scan a string. The next call to pycodeYYlex() will scan from a copy of str.

Parameters:
str a NUL-terminated string to scan
Returns:
the newly allocated buffer state object.
Note:
If you want to scan bytes that may contain NUL values, then use pycodeYY_scan_bytes() instead.

Definition at line 3369 of file pycode.cpp.

References pycodeYY_scan_bytes().

void pycodeYY_switch_to_buffer ( YY_BUFFER_STATE  new_buffer  ) 

Referenced by pycodeYY_scan_buffer().

void * pycodeYYalloc ( yy_size_t   ) 

Definition at line 3601 of file pycode.cpp.

Referenced by pycodeYY_scan_buffer(), and pycodeYY_scan_bytes().

void pycodeYYfree ( void *   ) 

Definition at line 3618 of file pycode.cpp.

Referenced by pycodeYYlex_destroy().

int pycodeYYget_debug ( void   ) 

Definition at line 3509 of file pycode.cpp.

FILE* pycodeYYget_in ( void   ) 

Get the input stream.

Definition at line 3453 of file pycode.cpp.

References pycodeYYin.

int pycodeYYget_leng ( void   ) 

Get the length of the current token.

Definition at line 3469 of file pycode.cpp.

References pycodeYYleng.

int pycodeYYget_lineno ( void   ) 

Get the current line number.

Definition at line 3444 of file pycode.cpp.

FILE* pycodeYYget_out ( void   ) 

Get the output stream.

Definition at line 3461 of file pycode.cpp.

References pycodeYYout.

char* pycodeYYget_text ( void   ) 

Get the current token.

Definition at line 3478 of file pycode.cpp.

int pycodeYYlex ( void   ) 

Referenced by parsePythonCode().

int pycodeYYlex_destroy ( void   ) 

Definition at line 3553 of file pycode.cpp.

References pycodeYY_delete_buffer(), pycodeYYfree(), pycodeYYpop_buffer_state(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

void pycodeYYpop_buffer_state ( void   ) 

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Definition at line 3268 of file pycode.cpp.

References pycodeYY_delete_buffer(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by pycodeYYlex_destroy().

void pycodeYYpush_buffer_state ( YY_BUFFER_STATE  new_buffer  ) 

Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.

Parameters:
new_buffer The new state.

Definition at line 3238 of file pycode.cpp.

References YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

void * pycodeYYrealloc ( void *  ,
yy_size_t   
)

Definition at line 3606 of file pycode.cpp.

void pycodeYYrestart ( FILE *  input_file  ) 

Referenced by parsePythonCode().

void pycodeYYset_debug ( int  bdebug  ) 

Definition at line 3514 of file pycode.cpp.

void pycodeYYset_in ( FILE *  in_str  ) 

Set the input stream. This does not discard the current input buffer.

Parameters:
in_str A readable stream.
See also:
pycodeYY_switch_to_buffer

Definition at line 3499 of file pycode.cpp.

References pycodeYYin.

void pycodeYYset_lineno ( int  line_number  ) 

Set the current line number.

Parameters:
line_number 

Definition at line 3487 of file pycode.cpp.

void pycodeYYset_out ( FILE *  out_str  ) 

Definition at line 3504 of file pycode.cpp.

References pycodeYYout.

void resetPythonCodeParserState (  ) 

Definition at line 3632 of file pycode.cpp.

References BEGIN, and Body.

Referenced by PythonLanguageScanner::resetCodeParserState().


Variable Documentation

int pycodeYY_flex_debug = 0

Definition at line 969 of file pycode.cpp.

int pycodeYY_flex_debug

Definition at line 969 of file pycode.cpp.

FILE* pycodeYYin = (FILE *) 0

Definition at line 343 of file pycode.cpp.

Referenced by parsePythonCode(), pycodeYYget_in(), and pycodeYYset_in().

FILE* pycodeYYin

Definition at line 343 of file pycode.cpp.

Referenced by parsePythonCode(), pycodeYYget_in(), and pycodeYYset_in().

int pycodeYYleng

Definition at line 278 of file pycode.cpp.

Referenced by pycodeYYget_leng().

int pycodeYYleng

Definition at line 278 of file pycode.cpp.

Referenced by pycodeYYget_leng().

int pycodeYYlineno = 1

Definition at line 349 of file pycode.cpp.

int pycodeYYlineno

Definition at line 349 of file pycode.cpp.

FILE * pycodeYYout = (FILE *) 0

Definition at line 343 of file pycode.cpp.

Referenced by pycodeYYget_out(), and pycodeYYset_out().

FILE * pycodeYYout

Definition at line 343 of file pycode.cpp.

Referenced by pycodeYYget_out(), and pycodeYYset_out().

char* pycodeYYtext

Definition at line 993 of file pycode.cpp.

char* pycodeYYtext

Definition at line 993 of file pycode.cpp.



Generated on Mon Mar 31 10:58:53 2008 by  doxygen 1.5.1