#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <qcstring.h>
#include <qfileinfo.h>
#include <qstringlist.h>
#include "vhdlscanner.h"
#include "vhdlcode.h"
#include "vhdldocgen.h"
#include "message.h"
#include "config.h"
#include "doxygen.h"
#include "util.h"
#include "language.h"
#include "commentscan.h"
#include "index.h"
#include "definition.h"
#include "searchindex.h"
#include "outputlist.h"
#include <unistd.h>
Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | yy_trans_info |
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 vhdlscanYYrestart(vhdlscanYYin ) |
#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 vhdlscanYY_flush_buffer(YY_CURRENT_BUFFER ) |
#define | yy_new_buffer vhdlscanYY_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 | vhdlscanYYwrap(n) 1 |
#define | YY_SKIP_YYWRAP |
#define | yytext_ptr vhdlscanYYtext |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 46 |
#define | YY_END_OF_BUFFER 47 |
#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 | theTranslator_vhdlType VhdlDocGen::getVhdlType |
#define | YY_NEVER_INTERACTIVE 1 |
#define | YY_INPUT(buf, result, max_size) result=yyread(buf,max_size); |
#define | INITIAL 0 |
#define | Start 1 |
#define | Comment 2 |
#define | FindTypeName 3 |
#define | ParseType 4 |
#define | ParseRecord 5 |
#define | ParseUnits 6 |
#define | ParseProcess 7 |
#define | FindName 8 |
#define | FindEntityName 9 |
#define | FindGenPort 10 |
#define | FindTypes 11 |
#define | FindSigName 12 |
#define | FindFuncName 13 |
#define | FindBegin 14 |
#define | YY_EXTRA_TYPE void * |
#define | YY_READ_BUF_SIZE 8192 |
#define | ECHO (void) fwrite( vhdlscanYYtext, vhdlscanYYleng, 1, vhdlscanYYout ) |
#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 vhdlscanYYlex (void) |
#define | YY_BREAK break; |
#define | YY_RULE_SETUP |
#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_state * | YY_BUFFER_STATE |
typedef unsigned int | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
Functions | |
void | vhdlscanYYrestart (FILE *input_file) |
void | vhdlscanYY_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
YY_BUFFER_STATE | vhdlscanYY_create_buffer (FILE *file, int size) |
void | vhdlscanYY_delete_buffer (YY_BUFFER_STATE b) |
void | vhdlscanYY_flush_buffer (YY_BUFFER_STATE b) |
void | vhdlscanYYpush_buffer_state (YY_BUFFER_STATE new_buffer) |
void | vhdlscanYYpop_buffer_state (void) |
YY_BUFFER_STATE | vhdlscanYY_scan_buffer (char *base, yy_size_t size) |
YY_BUFFER_STATE | vhdlscanYY_scan_string (yyconst char *yy_str) |
YY_BUFFER_STATE | vhdlscanYY_scan_bytes (yyconst char *bytes, int len) |
void * | vhdlscanYYalloc (yy_size_t) |
void * | vhdlscanYYrealloc (void *, yy_size_t) |
void | vhdlscanYYfree (void *) |
void | getType (Entry *p, char *text) |
void | addSignals (const char *str, int line, Entry *e, const char *comment=0) |
int | vhdlscanYYlex (void) |
int | vhdlscanYYget_lineno (void) |
FILE * | vhdlscanYYget_in (void) |
FILE * | vhdlscanYYget_out (void) |
int | vhdlscanYYget_leng (void) |
char * | vhdlscanYYget_text (void) |
void | vhdlscanYYset_lineno (int line_number) |
void | vhdlscanYYset_in (FILE *in_str) |
void | vhdlscanYYset_out (FILE *out_str) |
int | vhdlscanYYget_debug (void) |
void | vhdlscanYYset_debug (int bdebug) |
int | vhdlscanYYlex_destroy (void) |
void | mapLibPackage (const Entry *ce) |
void | vhdlscanFreeScanner () |
Variables | |
int | vhdlscanYYleng |
FILE * | vhdlscanYYin |
FILE * | vhdlscanYYout |
int | vhdlscanYYleng |
FILE * | vhdlscanYYin = (FILE *) 0 |
FILE * | vhdlscanYYout = (FILE *) 0 |
int | vhdlscanYYlineno |
int | vhdlscanYYlineno = 1 |
char * | vhdlscanYYtext |
int | vhdlscanYY_flex_debug |
int | vhdlscanYY_flex_debug = 0 |
char * | vhdlscanYYtext |
#define BEGIN (yy_start) = 1 + 2 * |
Definition at line 123 of file vhdlscanner.cpp.
#define Comment 2 |
Definition at line 2305 of file vhdlscanner.cpp.
#define ECHO (void) fwrite( vhdlscanYYtext, vhdlscanYYleng, 1, vhdlscanYYout ) |
Definition at line 2375 of file vhdlscanner.cpp.
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 158 of file vhdlscanner.cpp.
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 159 of file vhdlscanner.cpp.
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 160 of file vhdlscanner.cpp.
#define FindBegin 14 |
Definition at line 2317 of file vhdlscanner.cpp.
#define FindEntityName 9 |
Definition at line 2312 of file vhdlscanner.cpp.
#define FindFuncName 13 |
Definition at line 2316 of file vhdlscanner.cpp.
#define FindGenPort 10 |
Definition at line 2313 of file vhdlscanner.cpp.
#define FindName 8 |
Definition at line 2311 of file vhdlscanner.cpp.
#define FindSigName 12 |
Definition at line 2315 of file vhdlscanner.cpp.
#define FindTypeName 3 |
Definition at line 2306 of file vhdlscanner.cpp.
#define FindTypes 11 |
Definition at line 2314 of file vhdlscanner.cpp.
#define FLEX_BETA |
Definition at line 13 of file vhdlscanner.cpp.
#define FLEX_SCANNER |
Definition at line 8 of file vhdlscanner.cpp.
#define INITIAL 0 |
Definition at line 2303 of file vhdlscanner.cpp.
#define INT16_MAX (32767) |
Definition at line 72 of file vhdlscanner.cpp.
#define INT16_MIN (-32767-1) |
Definition at line 63 of file vhdlscanner.cpp.
#define INT32_MAX (2147483647) |
Definition at line 75 of file vhdlscanner.cpp.
#define INT32_MIN (-2147483647-1) |
Definition at line 66 of file vhdlscanner.cpp.
#define INT8_MAX (127) |
Definition at line 69 of file vhdlscanner.cpp.
#define INT8_MIN (-128) |
Definition at line 60 of file vhdlscanner.cpp.
#define ParseProcess 7 |
Definition at line 2310 of file vhdlscanner.cpp.
#define ParseRecord 5 |
Definition at line 2308 of file vhdlscanner.cpp.
#define ParseType 4 |
Definition at line 2307 of file vhdlscanner.cpp.
#define ParseUnits 6 |
Definition at line 2309 of file vhdlscanner.cpp.
#define REJECT |
Value:
{ \ *yy_cp = (yy_hold_char); /* undo effects of setting up vhdlscanYYtext */ \ 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 1749 of file vhdlscanner.cpp.
#define Start 1 |
Definition at line 2304 of file vhdlscanner.cpp.
#define theTranslator_vhdlType VhdlDocGen::getVhdlType |
Definition at line 1817 of file vhdlscanner.cpp.
#define UINT16_MAX (65535U) |
Definition at line 81 of file vhdlscanner.cpp.
#define UINT32_MAX (4294967295U) |
Definition at line 84 of file vhdlscanner.cpp.
#define UINT8_MAX (255U) |
Definition at line 78 of file vhdlscanner.cpp.
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
Definition at line 178 of file vhdlscanner.cpp.
#define vhdlscanYYwrap | ( | n | ) | 1 |
Definition at line 338 of file vhdlscanner.cpp.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 334 of file vhdlscanner.cpp.
#define YY_BREAK break; |
Definition at line 2454 of file vhdlscanner.cpp.
#define YY_BUF_SIZE 262144 |
Definition at line 142 of file vhdlscanner.cpp.
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 250 of file vhdlscanner.cpp.
#define YY_BUFFER_NEW 0 |
Definition at line 238 of file vhdlscanner.cpp.
#define YY_BUFFER_NORMAL 1 |
Definition at line 239 of file vhdlscanner.cpp.
#define YY_CURRENT_BUFFER |
Value:
( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL)
Definition at line 266 of file vhdlscanner.cpp.
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 273 of file vhdlscanner.cpp.
#define YY_DECL int vhdlscanYYlex (void) |
Definition at line 2442 of file vhdlscanner.cpp.
#define YY_DECL_IS_OURS 1 |
Definition at line 2438 of file vhdlscanner.cpp.
#define YY_DO_BEFORE_ACTION |
Value:
(yytext_ptr) = yy_bp; \ vhdlscanYYleng = (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 vhdlscanner.cpp.
#define YY_END_OF_BUFFER 47 |
Definition at line 370 of file vhdlscanner.cpp.
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 138 of file vhdlscanner.cpp.
#define YY_EXIT_FAILURE 2 |
Definition at line 4356 of file vhdlscanner.cpp.
#define YY_EXTRA_TYPE void * |
Definition at line 2328 of file vhdlscanner.cpp.
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
Definition at line 2429 of file vhdlscanner.cpp.
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 9 of file vhdlscanner.cpp.
#define YY_FLEX_MINOR_VERSION 5 |
Definition at line 10 of file vhdlscanner.cpp.
#define YY_FLEX_SUBMINOR_VERSION 33 |
Definition at line 11 of file vhdlscanner.cpp.
#define YY_FLUSH_BUFFER vhdlscanYY_flush_buffer(YY_CURRENT_BUFFER ) |
Definition at line 302 of file vhdlscanner.cpp.
#define YY_INPUT | ( | buf, | |||
result, | |||||
max_size | ) | result=yyread(buf,max_size); |
Definition at line 2238 of file vhdlscanner.cpp.
#define YY_INT_ALIGNED short int |
Definition at line 4 of file vhdlscanner.cpp.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 162 of file vhdlscanner.cpp.
#define YY_MORE_ADJ 0 |
Definition at line 1761 of file vhdlscanner.cpp.
#define YY_NEVER_INTERACTIVE 1 |
Definition at line 1852 of file vhdlscanner.cpp.
#define yy_new_buffer vhdlscanYY_create_buffer |
Definition at line 312 of file vhdlscanner.cpp.
#define YY_NEW_FILE vhdlscanYYrestart(vhdlscanYYin ) |
Definition at line 136 of file vhdlscanner.cpp.
#define YY_NULL 0 |
Definition at line 110 of file vhdlscanner.cpp.
#define YY_NUM_RULES 46 |
Definition at line 369 of file vhdlscanner.cpp.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 2367 of file vhdlscanner.cpp.
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 1762 of file vhdlscanner.cpp.
#define YY_RULE_SETUP |
Value:
if ( vhdlscanYYleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (vhdlscanYYtext[vhdlscanYYleng - 1] == '\n'); \ YY_USER_ACTION
Definition at line 2457 of file vhdlscanner.cpp.
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Definition at line 117 of file vhdlscanner.cpp.
#define yy_set_bol | ( | at_bol | ) |
Value:
{ \ if ( ! YY_CURRENT_BUFFER ){\ vhdlscanYYensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ vhdlscanYY_create_buffer(vhdlscanYYin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ }
Definition at line 324 of file vhdlscanner.cpp.
#define yy_set_interactive | ( | is_interactive | ) |
Value:
{ \ if ( ! YY_CURRENT_BUFFER ){ \ vhdlscanYYensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ vhdlscanYY_create_buffer(vhdlscanYYin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ }
Definition at line 314 of file vhdlscanner.cpp.
#define YY_SKIP_YYWRAP |
Definition at line 339 of file vhdlscanner.cpp.
#define YY_START (((yy_start) - 1) / 2) |
Definition at line 129 of file vhdlscanner.cpp.
#define YY_START_STACK_INCR 25 |
Definition at line 2424 of file vhdlscanner.cpp.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 147 of file vhdlscanner.cpp.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 133 of file vhdlscanner.cpp.
#define YY_TRAILING_HEAD_MASK 0x4000 |
Definition at line 1748 of file vhdlscanner.cpp.
#define YY_TRAILING_MASK 0x2000 |
Definition at line 1747 of file vhdlscanner.cpp.
#define yyconst |
Definition at line 106 of file vhdlscanner.cpp.
#define yyless | ( | n | ) |
Value:
do \ { \ /* Undo effects of setting up vhdlscanYYtext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ vhdlscanYYtext[vhdlscanYYleng] = (yy_hold_char); \ (yy_c_buf_p) = vhdlscanYYtext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ vhdlscanYYleng = yyless_macro_arg; \ } \ while ( 0 )
Definition at line 4368 of file vhdlscanner.cpp.
#define yyless | ( | n | ) |
Value:
do \ { \ /* Undo effects of setting up vhdlscanYYtext. */ \ 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 vhdlscanYYtext again */ \ } \ while ( 0 )
Definition at line 4368 of file vhdlscanner.cpp.
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 1760 of file vhdlscanner.cpp.
#define YYSTATE YY_START |
Definition at line 130 of file vhdlscanner.cpp.
#define YYTABLES_NAME "yytables" |
Definition at line 4566 of file vhdlscanner.cpp.
#define yyterminate | ( | ) | return YY_NULL |
Definition at line 2419 of file vhdlscanner.cpp.
#define yytext_ptr vhdlscanYYtext |
Definition at line 352 of file vhdlscanner.cpp.
typedef short int flex_int16_t |
Definition at line 51 of file vhdlscanner.cpp.
typedef int flex_int32_t |
Definition at line 52 of file vhdlscanner.cpp.
typedef signed char flex_int8_t |
Definition at line 50 of file vhdlscanner.cpp.
typedef unsigned short int flex_uint16_t |
Definition at line 54 of file vhdlscanner.cpp.
typedef unsigned int flex_uint32_t |
Definition at line 55 of file vhdlscanner.cpp.
typedef unsigned char flex_uint8_t |
Definition at line 53 of file vhdlscanner.cpp.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 151 of file vhdlscanner.cpp.
typedef unsigned char YY_CHAR |
Definition at line 341 of file vhdlscanner.cpp.
typedef unsigned int yy_size_t |
Definition at line 187 of file vhdlscanner.cpp.
typedef int yy_state_type |
Definition at line 345 of file vhdlscanner.cpp.
void addSignals | ( | const char * | str, | |
int | line, | |||
Entry * | e, | |||
const char * | comment = 0 | |||
) |
Definition at line 1979 of file vhdlscanner.cpp.
References Entry::bodyLine, Entry::brief, Entry::doc, VhdlDocGen::GENERIC, VhdlDocGen::getRecordNumber(), VhdlDocGen::getSigName(), Entry::name, VhdlDocGen::PORT, QCString, VhdlDocGen::RECORD, Entry::section, Entry::spec, Entry::startLine, Entry::type, VhdlDocGen::UNITS, and Entry::VARIABLE_SEC.
void getType | ( | Entry * | p, | |
char * | text | |||
) |
Definition at line 1930 of file vhdlscanner.cpp.
References VhdlDocGen::ATTRIBUTE, VhdlDocGen::CONSTANT, err(), VhdlDocGen::FUNCTION, VhdlDocGen::PROCEDURE, QCString, Entry::section, VhdlDocGen::SIGNAL, Entry::spec, VhdlDocGen::SUBTYPE, VhdlDocGen::TYPE, VhdlDocGen::UNITS, and Entry::VARIABLE_SEC.
void mapLibPackage | ( | const Entry * | ce | ) |
Definition at line 4678 of file vhdlscanner.cpp.
References Entry::addSubEntry(), VhdlDocGen::ARCHITECTURE, Entry::children(), VhdlDocGen::ENTITY, found, VhdlDocGen::LIBRARY, VhdlDocGen::PACKAGE, VhdlDocGen::PACKAGE_BODY, Entry::section, Entry::spec, and VhdlDocGen::USE.
Referenced by VHDLLanguageScanner::parseInput().
void vhdlscanFreeScanner | ( | ) |
YY_BUFFER_STATE vhdlscanYY_create_buffer | ( | FILE * | file, | |
int | size | |||
) |
void vhdlscanYY_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Referenced by vhdlscanYYlex_destroy(), and vhdlscanYYpop_buffer_state().
void vhdlscanYY_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Discard all buffered characters. On the next scan, YY_INPUT will be called.
b | the buffer state to be flushed, usually YY_CURRENT_BUFFER . |
Definition at line 4152 of file vhdlscanner.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 vhdlscanYY_scan_buffer | ( | char * | base, | |
yy_size_t | size | |||
) |
Setup the input buffer state to scan directly from a user-specified character buffer.
base | the character buffer | |
size | the size in bytes of the character buffer |
Definition at line 4275 of file vhdlscanner.cpp.
References vhdlscanYY_switch_to_buffer(), vhdlscanYYalloc(), 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 vhdlscanYY_scan_bytes().
YY_BUFFER_STATE vhdlscanYY_scan_bytes | ( | yyconst char * | yybytes, | |
int | _yybytes_len | |||
) |
Setup the input buffer state to scan the given bytes. The next call to vhdlscanYYlex() will scan from a copy of bytes.
bytes | the byte buffer to scan | |
len | the number of bytes in the buffer pointed to by bytes. |
Definition at line 4325 of file vhdlscanner.cpp.
References vhdlscanYY_scan_buffer(), vhdlscanYYalloc(), YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.
Referenced by vhdlscanYY_scan_string().
YY_BUFFER_STATE vhdlscanYY_scan_string | ( | yyconst char * | yystr | ) |
Setup the input buffer state to scan a string. The next call to vhdlscanYYlex() will scan from a copy of str.
str | a NUL-terminated string to scan |
Definition at line 4312 of file vhdlscanner.cpp.
References vhdlscanYY_scan_bytes().
void vhdlscanYY_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Referenced by vhdlscanYY_scan_buffer().
void * vhdlscanYYalloc | ( | yy_size_t | ) |
Definition at line 4544 of file vhdlscanner.cpp.
Referenced by vhdlscanYY_scan_buffer(), and vhdlscanYY_scan_bytes().
void vhdlscanYYfree | ( | void * | ) |
int vhdlscanYYget_debug | ( | void | ) |
Definition at line 4452 of file vhdlscanner.cpp.
FILE* vhdlscanYYget_in | ( | void | ) |
int vhdlscanYYget_leng | ( | void | ) |
Get the length of the current token.
Definition at line 4412 of file vhdlscanner.cpp.
References vhdlscanYYleng.
int vhdlscanYYget_lineno | ( | void | ) |
Get the current line number.
Definition at line 4387 of file vhdlscanner.cpp.
FILE* vhdlscanYYget_out | ( | void | ) |
char* vhdlscanYYget_text | ( | void | ) |
Get the current token.
Definition at line 4421 of file vhdlscanner.cpp.
int vhdlscanYYlex | ( | void | ) |
Referenced by VHDLLanguageScanner::parseInput().
int vhdlscanYYlex_destroy | ( | void | ) |
Definition at line 4496 of file vhdlscanner.cpp.
References vhdlscanYY_delete_buffer(), vhdlscanYYfree(), vhdlscanYYpop_buffer_state(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.
Referenced by vhdlscanFreeScanner().
void vhdlscanYYpop_buffer_state | ( | void | ) |
Removes and deletes the top of the stack, if present. The next element becomes the new top.
Definition at line 4211 of file vhdlscanner.cpp.
References vhdlscanYY_delete_buffer(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.
Referenced by vhdlscanYYlex_destroy().
void vhdlscanYYpush_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.
new_buffer | The new state. |
Definition at line 4181 of file vhdlscanner.cpp.
References YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.
void * vhdlscanYYrealloc | ( | void * | , | |
yy_size_t | ||||
) |
Definition at line 4549 of file vhdlscanner.cpp.
void vhdlscanYYrestart | ( | FILE * | input_file | ) |
Referenced by VHDLLanguageScanner::parseInput().
void vhdlscanYYset_debug | ( | int | bdebug | ) |
Definition at line 4457 of file vhdlscanner.cpp.
void vhdlscanYYset_in | ( | FILE * | in_str | ) |
Set the input stream. This does not discard the current input buffer.
in_str | A readable stream. |
Definition at line 4442 of file vhdlscanner.cpp.
References vhdlscanYYin.
void vhdlscanYYset_lineno | ( | int | line_number | ) |
Set the current line number.
line_number |
Definition at line 4430 of file vhdlscanner.cpp.
void vhdlscanYYset_out | ( | FILE * | out_str | ) |
int vhdlscanYY_flex_debug = 0 |
Definition at line 1739 of file vhdlscanner.cpp.
Definition at line 1739 of file vhdlscanner.cpp.
FILE* vhdlscanYYin = (FILE *) 0 |
Definition at line 343 of file vhdlscanner.cpp.
Referenced by VHDLLanguageScanner::parseInput(), vhdlscanYYget_in(), and vhdlscanYYset_in().
FILE* vhdlscanYYin |
Definition at line 343 of file vhdlscanner.cpp.
Referenced by VHDLLanguageScanner::parseInput(), vhdlscanYYget_in(), and vhdlscanYYset_in().
int vhdlscanYYleng |
int vhdlscanYYleng |
int vhdlscanYYlineno = 1 |
Definition at line 349 of file vhdlscanner.cpp.
int vhdlscanYYlineno |
Definition at line 349 of file vhdlscanner.cpp.
FILE * vhdlscanYYout = (FILE *) 0 |
Definition at line 343 of file vhdlscanner.cpp.
Referenced by vhdlscanYYget_out(), and vhdlscanYYset_out().
FILE * vhdlscanYYout |
Definition at line 343 of file vhdlscanner.cpp.
Referenced by vhdlscanYYget_out(), and vhdlscanYYset_out().
char* vhdlscanYYtext |
Definition at line 1763 of file vhdlscanner.cpp.
char* vhdlscanYYtext |
Definition at line 1763 of file vhdlscanner.cpp.