ao-lexer.h File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
Include dependency graph for ao-lexer.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  yy_buffer_state

Defines

#define aoHEADER_H   1
#define aoIN_HEADER   1
#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   35
#define FLEX_BETA
#define yyconst
#define yytext_ptr   aotext

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 struct yy_buffer_stateYY_BUFFER_STATE
typedef size_t yy_size_t

Functions

void aorestart (FILE *input_file)
void ao_switch_to_buffer (YY_BUFFER_STATE new_buffer)
YY_BUFFER_STATE ao_create_buffer (FILE *file, int size)
void ao_delete_buffer (YY_BUFFER_STATE b)
void ao_flush_buffer (YY_BUFFER_STATE b)
void aopush_buffer_state (YY_BUFFER_STATE new_buffer)
void aopop_buffer_state (void)
YY_BUFFER_STATE ao_scan_buffer (char *base, yy_size_t size)
YY_BUFFER_STATE ao_scan_string (yyconst char *yy_str)
YY_BUFFER_STATE ao_scan_bytes (yyconst char *bytes, int len)
void * aoalloc (yy_size_t)
void * aorealloc (void *, yy_size_t)
void aofree (void *)
int aolex_destroy (void)
int aoget_debug (void)
void aoset_debug (int debug_flag)
YY_EXTRA_TYPE aoget_extra (void)
void aoset_extra (YY_EXTRA_TYPE user_defined)
FILE * aoget_in (void)
void aoset_in (FILE *in_str)
FILE * aoget_out (void)
void aoset_out (FILE *out_str)
int aoget_leng (void)
char * aoget_text (void)
int aoget_lineno (void)
void aoset_lineno (int line_number)
int aowrap (void)

Variables

int aoleng
FILE * aoin
FILE * aoout
int aolineno
char * aotext

Define Documentation

#define aoHEADER_H   1
#define aoIN_HEADER   1
#define FLEX_BETA
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   35
#define YY_INT_ALIGNED   short int
#define yyconst
#define yytext_ptr   aotext

Typedef Documentation

typedef short int flex_int16_t
typedef int flex_int32_t
typedef signed char flex_int8_t
typedef unsigned short int flex_uint16_t
typedef unsigned int flex_uint32_t
typedef unsigned char flex_uint8_t
typedef size_t yy_size_t

Function Documentation

YY_BUFFER_STATE ao_create_buffer ( FILE *  file,
int  size 
)
void ao_delete_buffer ( YY_BUFFER_STATE  b  ) 
void ao_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.

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 ao_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.

References ao_switch_to_buffer(), aoalloc(), 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 ao_scan_bytes().

YY_BUFFER_STATE ao_scan_bytes ( yyconst char *  bytes,
int  len 
)

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

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

References ao_scan_buffer(), aoalloc(), n, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.

Referenced by ao_scan_string().

YY_BUFFER_STATE ao_scan_string ( yyconst char *  yy_str  ) 

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

Parameters:
yystr 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 ao_scan_bytes() instead.

References ao_scan_bytes().

void ao_switch_to_buffer ( YY_BUFFER_STATE  new_buffer  ) 
void* aoalloc ( yy_size_t   ) 

Referenced by ao_scan_buffer(), and ao_scan_bytes().

void aofree ( void *   ) 

Referenced by aolex_destroy().

int aoget_debug ( void   ) 
YY_EXTRA_TYPE aoget_extra ( void   ) 
FILE* aoget_in ( void   ) 

Get the input stream.

References aoin.

int aoget_leng ( void   ) 

Get the length of the current token.

References aoleng.

int aoget_lineno ( void   ) 

Get the current line number.

FILE* aoget_out ( void   ) 

Get the output stream.

References aoout.

char* aoget_text ( void   ) 

Get the current token.

int aolex_destroy ( void   ) 
void aopop_buffer_state ( void   ) 

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

References ao_delete_buffer(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by aolex_destroy().

void aopush_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.

References YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

void* aorealloc ( void *  ,
yy_size_t   
)
void aorestart ( FILE *  input_file  ) 
void aoset_debug ( int  debug_flag  ) 
void aoset_extra ( YY_EXTRA_TYPE  user_defined  ) 
void aoset_in ( FILE *  in_str  ) 

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

Parameters:
in_str A readable stream.
See also:
ao_switch_to_buffer
void aoset_lineno ( int  line_number  ) 

Set the current line number.

Parameters:
line_number 
void aoset_out ( FILE *  out_str  ) 

References aoout.

int aowrap ( void   ) 

Variable Documentation

FILE* aoin
int aoleng
int aolineno
FILE * aoout
char* aotext
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2