Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

lex.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include "eval.h"
#include "evaltype.h"
#include "evalparse.h"

Go to the source code of this file.

Classes

struct  yy_buffer_state

Defines

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define yyconst
#define YY_PROTO(proto)   ()
#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   yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR   0
#define YY_BUF_SIZE   16384
#define EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#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   yy_current_buffer
#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )
#define yy_new_buffer   yy_create_buffer
#define yy_set_interactive(is_interactive)
#define yy_set_bol(at_bol)
#define YY_AT_BOL()   (yy_current_buffer->yy_at_bol)
#define yywrap()   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   yytext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   32
#define YY_END_OF_BUFFER   33
#define REJECT   reject_used_but_not_detected
#define yymore()   yymore_used_but_not_detected
#define YY_MORE_ADJ   0
#define YY_RESTORE_YY_MORE_OFFSET
#define INITIAL   0
#define USE_PURE_PARSER
#define YY_DECL   int yylex (YYSTYPE *lvalp)
#define YY_LVALP   lvalp
#define YY_USER_ACTION   lex_pos=yy_bp - YY_CURRENT_BUFFER->yy_ch_buf;
#define YY_NO_PUSH_STATE   1
#define YY_NO_POP_STATE   1
#define YY_NO_TOP_STATE   1
#define YY_READ_BUF_SIZE   8192
#define ECHO   (void) fwrite( yytext, yyleng, 1, yyout )
#define YY_INPUT(buf, result, max_size)
#define yyterminate()   return YY_NULL
#define YY_START_STACK_INCR   25
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
#define YY_BREAK   break;
#define YY_RULE_SETUP   YY_USER_ACTION
#define YY_EXIT_FAILURE   2
#define yyless(n)

Typedefs

typedef yy_buffer_stateYY_BUFFER_STATE
typedef unsigned int yy_size_t
typedef unsigned char YY_CHAR
typedef int yy_state_type

Functions

void yyrestart YY_PROTO ((FILE *input_file))
void yy_switch_to_buffer YY_PROTO ((YY_BUFFER_STATE new_buffer))
void yy_load_buffer_state YY_PROTO ((void))
YY_BUFFER_STATE yy_create_buffer YY_PROTO ((FILE *file, int size))
void yy_delete_buffer YY_PROTO ((YY_BUFFER_STATE b))
void yy_init_buffer YY_PROTO ((YY_BUFFER_STATE b, FILE *file))
YY_BUFFER_STATE yy_scan_buffer YY_PROTO ((char *base, yy_size_t size))
YY_BUFFER_STATE yy_scan_string YY_PROTO ((yyconst char *yy_str))
YY_BUFFER_STATE yy_scan_bytes YY_PROTO ((yyconst char *bytes, int len))
void * lex_current_buffer ()
int lex_current_buffer_pos ()
void lex_switch_buffer (void *buffer)
void lex_delete_buffer (void *buffer)
void * lex_scan_string_buffer (const char *str)

Variables

int yyleng
FILE * yyin = (FILE *) 0 *yyout = (FILE *) 0
FILE * yyout
char * yytext
register char * yy_bp
int size
FILE * file
int len


Define Documentation

#define BEGIN   yy_start = 1 + 2 *
 

Definition at line 79 of file lex.c.

#define ECHO   (void) fwrite( yytext, yyleng, 1, yyout )
 

Definition at line 689 of file lex.c.

#define EOB_ACT_CONTINUE_SCAN   0
 

Definition at line 104 of file lex.c.

#define EOB_ACT_END_OF_FILE   1
 

Definition at line 105 of file lex.c.

#define EOB_ACT_LAST_MATCH   2
 

Definition at line 106 of file lex.c.

#define FLEX_SCANNER
 

Definition at line 7 of file lex.c.

#define INITIAL   0
 

Definition at line 421 of file lex.c.

#define REJECT   reject_used_but_not_detected
 

Definition at line 415 of file lex.c.

#define unput  )     yyunput( c, yytext_ptr )
 

Definition at line 135 of file lex.c.

#define USE_PURE_PARSER
 

Definition at line 424 of file lex.c.

 
#define YY_AT_BOL  )     (yy_current_buffer->yy_at_bol)
 

Definition at line 262 of file lex.c.

#define YY_BREAK   break;
 

Definition at line 748 of file lex.c.

#define YY_BUF_SIZE   16384
 

Definition at line 97 of file lex.c.

#define YY_BUFFER_EOF_PENDING   2
 

Definition at line 198 of file lex.c.

#define YY_BUFFER_NEW   0
 

Definition at line 186 of file lex.c.

#define YY_BUFFER_NORMAL   1
 

Definition at line 187 of file lex.c.

#define YY_CURRENT_BUFFER   yy_current_buffer
 

Definition at line 207 of file lex.c.

Referenced by lex_current_buffer().

#define YY_DECL   int yylex (YYSTYPE *lvalp)
 

Definition at line 427 of file lex.c.

#define YY_DO_BEFORE_ACTION
 

Value:

yytext_ptr = yy_bp; \
        yyleng = (int) (yy_cp - yy_bp); \
        yy_hold_char = *yy_cp; \
        *yy_cp = '\0'; \
        yy_c_buf_p = yy_cp;

Definition at line 281 of file lex.c.

#define YY_END_OF_BUFFER   33
 

Definition at line 289 of file lex.c.

#define YY_END_OF_BUFFER_CHAR   0
 

Definition at line 94 of file lex.c.

#define YY_EXIT_FAILURE   2
 

#define YY_FATAL_ERROR msg   )     yy_fatal_error( msg )
 

Definition at line 729 of file lex.c.

#define YY_FLEX_MAJOR_VERSION   2
 

Definition at line 8 of file lex.c.

#define YY_FLEX_MINOR_VERSION   5
 

Definition at line 9 of file lex.c.

#define YY_FLUSH_BUFFER   yy_flush_buffer( yy_current_buffer )
 

Definition at line 236 of file lex.c.

#define YY_INPUT buf,
result,
max_size   ) 
 

Value:

if ( yy_current_buffer->yy_is_interactive ) \
                { \
                int c = '*', n; \
                for ( n = 0; n < max_size && \
                             (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
                        buf[n] = (char) c; \
                if ( c == '\n' ) \
                        buf[n++] = (char) c; \
                if ( c == EOF && ferror( yyin ) ) \
                        YY_FATAL_ERROR( "input in flex scanner failed" ); \
                result = n; \
                } \
        else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
                  && ferror( yyin ) ) \
                YY_FATAL_ERROR( "input in flex scanner failed" );

Definition at line 696 of file lex.c.

#define YY_LVALP   lvalp
 

Definition at line 428 of file lex.c.

#define YY_MORE_ADJ   0
 

Definition at line 417 of file lex.c.

#define yy_new_buffer   yy_create_buffer
 

Definition at line 246 of file lex.c.

#define YY_NEW_FILE   yyrestart( yyin )
 

Definition at line 92 of file lex.c.

#define YY_NO_POP_STATE   1
 

Definition at line 659 of file lex.c.

#define YY_NO_PUSH_STATE   1
 

Definition at line 658 of file lex.c.

#define YY_NO_TOP_STATE   1
 

Definition at line 660 of file lex.c.

#define YY_NULL   0
 

Definition at line 66 of file lex.c.

#define YY_NUM_RULES   32
 

Definition at line 288 of file lex.c.

#define YY_PROTO proto   )     ()
 

Definition at line 62 of file lex.c.

#define YY_READ_BUF_SIZE   8192
 

Definition at line 680 of file lex.c.

#define YY_RESTORE_YY_MORE_OFFSET
 

Definition at line 418 of file lex.c.

#define YY_RULE_SETUP   YY_USER_ACTION
 

Definition at line 751 of file lex.c.

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

Definition at line 73 of file lex.c.

#define yy_set_bol at_bol   ) 
 

Value:

{ \
        if ( ! yy_current_buffer ) \
                yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
        yy_current_buffer->yy_at_bol = at_bol; \
        }

Definition at line 255 of file lex.c.

#define yy_set_interactive is_interactive   ) 
 

Value:

{ \
        if ( ! yy_current_buffer ) \
                yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
        yy_current_buffer->yy_is_interactive = is_interactive; \
        }

Definition at line 248 of file lex.c.

#define YY_SKIP_YYWRAP
 

Definition at line 266 of file lex.c.

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

Definition at line 85 of file lex.c.

#define YY_START_STACK_INCR   25
 

Definition at line 724 of file lex.c.

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

Definition at line 89 of file lex.c.

#define YY_USER_ACTION   lex_pos=yy_bp - YY_CURRENT_BUFFER->yy_ch_buf;
 

Definition at line 434 of file lex.c.

#define yyconst
 

Definition at line 55 of file lex.c.

#define yyless  ) 
 

Value:

do \
                { \
                  \
                yytext[yyleng] = yy_hold_char; \
                yy_c_buf_p = yytext + n; \
                yy_hold_char = *yy_c_buf_p; \
                *yy_c_buf_p = '\0'; \
                yyleng = n; \
                } \
        while ( 0 )

Definition at line 124 of file lex.c.

#define yyless  ) 
 

Value:

do \
                { \
                  \
                *yy_cp = yy_hold_char; \
                YY_RESTORE_YY_MORE_OFFSET \
                yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
                YY_DO_BEFORE_ACTION;   \
                } \
        while ( 0 )

Definition at line 124 of file lex.c.

 
#define yymore  )     yymore_used_but_not_detected
 

Definition at line 416 of file lex.c.

#define YYSTATE   YY_START
 

Definition at line 86 of file lex.c.

 
#define yyterminate  )     return YY_NULL
 

Definition at line 719 of file lex.c.

#define yytext_ptr   yytext
 

Definition at line 271 of file lex.c.

 
#define yywrap  )     1
 

Definition at line 265 of file lex.c.


Typedef Documentation

typedef struct yy_buffer_state* YY_BUFFER_STATE
 

Definition at line 99 of file lex.c.

typedef unsigned char YY_CHAR
 

Definition at line 267 of file lex.c.

typedef unsigned int yy_size_t
 

Definition at line 141 of file lex.c.

typedef int yy_state_type
 

Definition at line 269 of file lex.c.


Function Documentation

void* lex_current_buffer  ) 
 

Definition at line 582 of file lex.c.

References YY_CURRENT_BUFFER.

Referenced by eval().

int lex_current_buffer_pos  ) 
 

Definition at line 587 of file lex.c.

Referenced by set_eval_error().

void lex_delete_buffer void *  buffer  ) 
 

Definition at line 597 of file lex.c.

Referenced by eval().

void* lex_scan_string_buffer const char *  str  ) 
 

Definition at line 602 of file lex.c.

Referenced by eval().

void lex_switch_buffer void *  buffer  ) 
 

Definition at line 592 of file lex.c.

Referenced by eval().

YY_BUFFER_STATE yy_scan_bytes YY_PROTO (yyconst char *bytes, int len  ) 
 

YY_BUFFER_STATE yy_scan_string YY_PROTO (yyconst char *yy_str)   ) 
 

YY_BUFFER_STATE yy_scan_buffer YY_PROTO (char *base, yy_size_t size  ) 
 

void yy_init_buffer YY_PROTO (YY_BUFFER_STATE b, FILE *file  ) 
 

void yy_flush_buffer YY_PROTO (YY_BUFFER_STATE b)   ) 
 

YY_BUFFER_STATE yy_create_buffer YY_PROTO (FILE *file, int size  ) 
 

int input YY_PROTO (void)   ) 
 

void yy_switch_to_buffer YY_PROTO (YY_BUFFER_STATE new_buffer)   ) 
 

void yyrestart YY_PROTO (FILE *input_file)   ) 
 


Variable Documentation

FILE* file
 

Definition at line 1576 of file lex.c.

Referenced by blockop_dialog(), clipboard_copy(), clipboard_paste(), create_blockop_int_context(), create_blockop_str_context(), create_replace_bin_context(), create_replace_hexascii_context(), create_search_bin_context(), ht_app::create_window_file_bin(), ht_app::create_window_file_text(), ht_app::create_window_help(), export_to_sym(), fgetstrz(), RegistryFs::fileOpen(), LocalFs::fileOpen(), ht_ne_aviewer::func(), ht_le_aviewer::func(), get_newexe_header_ofs(), ht_app::handlemsg(), ht_assert_failed(), ht_error(), ht_fprintf(), ht_trace(), ht_vfprintf(), ht_warn(), htclassimage_init(), htdisasm_init(), htelfheader_init(), htfinfo_init(), hthex_init(), htpefheader_init(), htpefimage_init(), htpefimports_init(), httext_init(), ht_xbe_header_viewer::init(), ht_xbe::init(), ht_text_sub::init(), ht_pe_il_viewer::init(), ht_pe_header_viewer::init(), ht_pe::init(), ht_ne_aviewer::init(), ht_mz::init(), ht_le_aviewer::init(), ht_le_page_file::init(), ht_le::init(), ht_group_sub::init(), ht_collapsable_sub::init(), ht_layer_sub::init(), ht_uformat_viewer::init(), ht_disasm_viewer::init(), ht_coff::init(), ht_app::init(), ht_analy_sub::init(), ht_aviewer::init(), insert_history_entry(), linear_bin_search(), ht_pe_aviewer::setAnalyser(), ht_ne_aviewer::setAnalyser(), ht_le_aviewer::setAnalyser(), and ht_elf_aviewer::setAnalyser().

int len
 

Definition at line 1689 of file lex.c.

Referenced by attribute_read(), bin2str(), binstr2cstr(), bufdowncase(), clipboard_copy(), clipboard_paste(), ht_undo_data_overwrite_string::combine(), ht_undo_data_insert_string::combine(), ht_undo_data_delete_string2::combine(), Analyser::continueAnalysis(), cplus_demangle_opname(), cplus_mangle_opname(), create_blockop_int_context(), create_blockop_str_context(), create_replace_bin_context(), create_replace_hexascii_context(), create_search_bin_context(), Analyser::doBranch(), ht_statictext::draw(), ht_status::draw(), escape_special(), ht_text_sub::find_linelen_backwd(), ht_ltextfile::find_linelen_forwd(), ht_text_sub::find_linelen_forwd(), AnalyserOutput::generateFile(), AnalyserOutput::getLineByteLength(), AnalyserOutput::getLineString(), ht_linear_func_readstring(), ht_strdup(), ht_strndup(), ILunpackDword(), ILunpackToken(), ht_ltextfile::insert_chars(), ht_layer_textfile::insert_chars(), ht_text_editor::insert_chars(), lzo_adler32(), lzo_memcmp(), lzo_memcpy(), lzo_memmove(), lzo_memset(), AnalyserOutput::nextLine(), AnalyserOutput::prevLine(), AnalyserHTOutput::putElement(), ht_object_stream_bin::putString(), ht_mod_page::read(), ht_info_viewer::readfile(), regexec(), regmatch(), ht_text_viewer::render_str(), ht_uformat_viewer::render_tagstring_single(), ht_info_textfile::set_node(), ht_aviewer::showComments(), statictag_to_tag(), sys_get_native_clipboard_data_size(), AnalyserOutput::write(), and ht_mod_page::write().

yy_size_t size
 

Definition at line 1857 of file lex.c.

Referenced by __lzo_align_gap(), bin2c(), bin2c_table(), bin2h(), XBEAnalyser::bufPtr(), PEFAnalyser::bufPtr(), PEAnalyser::bufPtr(), NEAnalyser::bufPtr(), MachoAnalyser::bufPtr(), LEAnalyser::bufPtr(), FLTAnalyser::bufPtr(), ElfAnalyser::bufPtr(), CoffAnalyser::bufPtr(), ClassAnalyser::bufPtr(), calc_entropy(), calc_entropy2(), clipboard_add_copy_history_entry(), clipboard_copy(), create_blockop_int_context(), create_blockop_str_context(), create_foreign_int(), create_host_int(), ht_group::datasize(), x86dis::decode_modrm(), x86asm::delete_nonsense_insn(), delete_text_block(), ht_le::do_fixups(), ht_object_stream_memmap::duppa(), ht_uformat_viewer::edit_input(), x86asm::emitdisp(), x86asm::emitimm(), x86asm::encode_op(), x86asm::esizeaddr(), x86asm::esizeop(), ht_streamfile_modifier::extend(), x86asm::flsz2hsz(), ht_uformat_viewer::func(), ht_uformat_viewer::get_current_tag_size(), ht_uformat_viewer::get_tag_color_edit(), ht_object_stream_memmap::getBinary(), ht_object_stream_txt::getBinary(), ht_object_stream_bin::getBinary(), ht_object_stream::getInt(), ht_object_stream_memmap::getIntDec(), ht_object_stream_txt::getIntDec(), ht_object_stream_bin::getIntDec(), ht_object_stream_memmap::getIntHex(), ht_object_stream_txt::getIntHex(), ht_object_stream_bin::getIntHex(), ht_object_stream_memmap::getQWordDec(), ht_object_stream_txt::getQWordDec(), ht_object_stream_bin::getQWordDec(), ht_object_stream_memmap::getQWordHex(), ht_object_stream_bin::getQWordHex(), ht_format_viewer::handlemsg(), Disassembler::hexd(), x86asm::immlsz2hsz(), ht_text_editor::indent(), ht_mem_file::init(), ht_text_sub::init(), ht_hex_sub::init(), ht_linear_sub::init(), ht_disasm_sub::init(), insert_text_block(), ht_history_entry::load(), x86asm::lsz2hsz(), x86asm::match_size(), ht_format_viewer::pread(), ht_object_stream_memmap::putBinary(), ht_object_stream_txt::putBinary(), ht_object_stream_bin::putBinary(), ht_object_stream::putInt(), ht_object_stream_memmap::putIntDec(), ht_object_stream_txt::putIntDec(), ht_object_stream_bin::putIntDec(), ht_object_stream_memmap::putIntHex(), ht_object_stream_txt::putIntHex(), ht_object_stream_bin::putIntHex(), ht_object_stream_memmap::putQWordDec(), ht_object_stream_bin::putQWordDec(), ht_object_stream_memmap::putQWordHex(), ht_object_stream_bin::putQWordHex(), ht_uformat_viewer::pwrite(), ht_format_viewer::pwrite(), re_compile_fastmap(), re_match(), re_search(), ht_ltextfile::read(), ht_mem_file::read(), ht_stdio_file::read(), ht_sys_file::read(), ht_layer_streamfile::read(), ht_layer_stream::read(), ht_reloc_file::read(), ht_win32_file::read(), ht_le_page_file::read(), ht_compressed_stream::read(), ht_info_viewer::readfile(), ht_object_stream_memmap::recordStart(), ht_uformat_viewer::ref_desc(), ht_pe_header_viewer::ref_sel(), ht_uformat_viewer::render_tagstring_desc(), replace_bin_process(), scrollbar_pos(), ht_registry::set_raw(), smalloc(), smalloc0(), srt_x86_pop(), srt_x86_push(), ht_history_entry::store(), sys_write_data_to_native_clipboard(), ht_streamfile_modifier::truncate(), ht_text_editor::unindent(), ht_format_viewer::vread(), ht_format_viewer::vwrite(), ht_ltextfile::write(), Terminal::write(), ht_mem_file::write(), ht_stdio_file::write(), ht_sys_file::write(), ht_layer_streamfile::write(), ht_layer_stream::write(), ht_reloc_file::write(), ht_win32_file::write(), ht_le_page_file::write(), ht_clipboard::write(), and ht_compressed_stream::write().

register char* yy_bp
 

Definition at line 1349 of file lex.c.

FILE * yyin = (FILE *) 0 *yyout = (FILE *) 0
 

Definition at line 268 of file lex.c.

int yyleng
 

Definition at line 216 of file lex.c.

FILE * yyout
 

Definition at line 102 of file lex.c.

char * yytext
 

Definition at line 419 of file lex.c.


Generated on Fri May 7 21:15:51 2004 by doxygen 1.3.5