torc-master
|
#include <cstdio>
#include <iostream>
#include <errno.h>
#include <cstdlib>
#include <cstring>
#include <FlexLexer.h>
#include <string>
#include "torc/generic/edif/ParserHelpers.hpp"
#include "torc/generic/PortAttributes.hpp"
#include "torc/generic/NetAttributes.hpp"
#include "torc/generic/edif/Parser.h"
#include "torc/generic/edif/Scanner.hpp"
#include "torc/generic/InterfaceAttributes.hpp"
#include "torc/generic/LogicValueAttributes.hpp"
Go to the source code of this file.
Data Structures | |
struct | yy_buffer_state |
Bison parser internals. More... | |
struct | yy_trans_info |
Bison parser internals. More... | |
Namespaces | |
torc | |
Implementation of class to encapsulate micro-bitstream library generation code. | |
torc::generic | |
Namespace for the Torc generic netlist, including EDIF and BLIF importers and exporters. | |
Macros | |
#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 | yyFlexLexer EdifFlexLexer |
#define | FLEXINT_H |
#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 yyrestart(yyin) |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_BUF_SIZE 16384 |
#define | YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
#define | YY_TYPEDEF_YY_BUFFER_STATE |
#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_TYPEDEF_YY_SIZE_T |
#define | YY_STRUCT_YY_BUFFER_STATE |
#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_new_buffer yy_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 | FLEX_DEBUG |
#define | yytext_ptr yytext |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 298 |
#define | YY_END_OF_BUFFER 299 |
#define | REJECT |
#define | yymore() yymore_used_but_not_detected |
#define | YY_MORE_ADJ 0 |
#define | YY_RESTORE_YY_MORE_OFFSET |
#define | yyterminate() return Token::END |
#define | YY_NO_UNISTD_H |
#define | YY_USER_ACTION |
#define | INITIAL 0 |
#define | YY_EXTRA_TYPE void * |
#define | YY_READ_BUF_SIZE 8192 |
#define | ECHO LexerOutput(yytext, yyleng) |
#define | YY_INPUT(buf, result, max_size) |
#define | YY_START_STACK_INCR 25 |
#define | YY_FATAL_ERROR(msg) LexerError(msg) |
#define | YY_DECL_IS_OURS 1 |
#define | YY_DECL int yyFlexLexer::yylex() |
#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 struct yy_buffer_state * | YY_BUFFER_STATE |
typedef size_t | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef torc::generic::Parser::token | Token |
typedef torc::generic::Parser::token_type | TokenType |
Functions | |
void * | Edifalloc (yy_size_t) |
void * | Edifrealloc (void *, yy_size_t) |
void | Ediffree (void *) |
yylloc | step () |
if (!(yy_init)) | |
while (1) | |
int | isatty (int) |
Variables | |
int | yyleng |
static yyconst flex_int16_t | yy_acclist [2063] |
static yyconst flex_int16_t | yy_accept [1722] |
static yyconst flex_int32_t | yy_ec [256] |
static yyconst flex_int32_t | yy_meta [71] |
static yyconst flex_int16_t | yy_base [1724] |
static yyconst flex_int16_t | yy_def [1724] |
static yyconst flex_int16_t | yy_nxt [3603] |
static yyconst flex_int16_t | yy_chk [3603] |
static yyconst flex_int16_t | yy_rule_linenum [298] |
YY_DECL register yy_state_type | yy_current_state |
register char * | yy_cp |
register char * | yy_bp |
register int | yy_act |
#define BEGIN (yy_start) = 1 + 2 * |
Definition at line 175 of file Scanner.cc.
#define ECHO LexerOutput(yytext, yyleng) |
Definition at line 2234 of file Scanner.cc.
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 215 of file Scanner.cc.
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 216 of file Scanner.cc.
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 217 of file Scanner.cc.
#define FLEX_BETA |
Definition at line 23 of file Scanner.cc.
#define FLEX_DEBUG |
Definition at line 376 of file Scanner.cc.
#define FLEX_SCANNER |
Definition at line 18 of file Scanner.cc.
#define FLEXINT_H |
Definition at line 56 of file Scanner.cc.
#define INITIAL 0 |
Definition at line 2171 of file Scanner.cc.
#define INT16_MAX (32767) |
Definition at line 99 of file Scanner.cc.
#define INT16_MIN (-32767-1) |
Definition at line 90 of file Scanner.cc.
#define INT32_MAX (2147483647) |
Definition at line 102 of file Scanner.cc.
#define INT32_MIN (-2147483647-1) |
Definition at line 93 of file Scanner.cc.
#define INT8_MAX (127) |
Definition at line 96 of file Scanner.cc.
#define INT8_MIN (-128) |
Definition at line 87 of file Scanner.cc.
#define REJECT |
Definition at line 2104 of file Scanner.cc.
#define UINT16_MAX (65535U) |
Definition at line 108 of file Scanner.cc.
#define UINT32_MAX (4294967295U) |
Definition at line 111 of file Scanner.cc.
#define UINT8_MAX (255U) |
Definition at line 105 of file Scanner.cc.
#define unput | ( | c | ) | yyunput(c, (yytext_ptr)) |
Definition at line 235 of file Scanner.cc.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 371 of file Scanner.cc.
#define YY_BREAK break; |
Definition at line 2308 of file Scanner.cc.
#define YY_BUF_SIZE 16384 |
Definition at line 194 of file Scanner.cc.
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 307 of file Scanner.cc.
#define YY_BUFFER_NEW 0 |
Definition at line 295 of file Scanner.cc.
#define YY_BUFFER_NORMAL 1 |
Definition at line 296 of file Scanner.cc.
#define YY_CURRENT_BUFFER |
Definition at line 327 of file Scanner.cc.
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 334 of file Scanner.cc.
#define YY_DECL int yyFlexLexer::yylex() |
Definition at line 2295 of file Scanner.cc.
#define YY_DECL_IS_OURS 1 |
Definition at line 2291 of file Scanner.cc.
#define YY_DO_BEFORE_ACTION |
Definition at line 390 of file Scanner.cc.
#define YY_END_OF_BUFFER 299 |
Definition at line 401 of file Scanner.cc.
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 190 of file Scanner.cc.
#define YY_EXIT_FAILURE 2 |
Definition at line 6930 of file Scanner.cc.
#define YY_EXTRA_TYPE void * |
Definition at line 2186 of file Scanner.cc.
#define YY_FATAL_ERROR | ( | msg | ) | LexerError(msg) |
Definition at line 2270 of file Scanner.cc.
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 19 of file Scanner.cc.
#define YY_FLEX_MINOR_VERSION 5 |
Definition at line 20 of file Scanner.cc.
#define YY_FLEX_SUBMINOR_VERSION 35 |
Definition at line 21 of file Scanner.cc.
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) |
Definition at line 2242 of file Scanner.cc.
#define YY_INT_ALIGNED short int |
Definition at line 6 of file Scanner.cc.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 219 of file Scanner.cc.
#define YY_MORE_ADJ 0 |
Definition at line 2113 of file Scanner.cc.
#define yy_new_buffer yy_create_buffer |
Definition at line 349 of file Scanner.cc.
#define YY_NEW_FILE yyrestart(yyin) |
Definition at line 188 of file Scanner.cc.
#define YY_NO_UNISTD_H |
Definition at line 2153 of file Scanner.cc.
#define YY_NULL 0 |
Definition at line 151 of file Scanner.cc.
#define YY_NUM_RULES 298 |
Definition at line 400 of file Scanner.cc.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 2226 of file Scanner.cc.
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 2114 of file Scanner.cc.
#define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 2312 of file Scanner.cc.
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Definition at line 161 of file Scanner.cc.
#define yy_set_bol | ( | at_bol | ) |
Definition at line 361 of file Scanner.cc.
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 351 of file Scanner.cc.
#define YY_START (((yy_start) - 1) / 2) |
Definition at line 181 of file Scanner.cc.
#define YY_START_STACK_INCR 25 |
Definition at line 2262 of file Scanner.cc.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 199 of file Scanner.cc.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 185 of file Scanner.cc.
#define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 243 of file Scanner.cc.
#define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 202 of file Scanner.cc.
#define YY_TYPEDEF_YY_SIZE_T |
Definition at line 238 of file Scanner.cc.
#define YY_USER_ACTION |
Definition at line 2166 of file Scanner.cc.
#define yyconst |
Definition at line 145 of file Scanner.cc.
#define yyFlexLexer EdifFlexLexer |
Definition at line 33 of file Scanner.cc.
#define yyless | ( | n | ) |
Definition at line 6946 of file Scanner.cc.
#define yyless | ( | n | ) |
Definition at line 6946 of file Scanner.cc.
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 2112 of file Scanner.cc.
#define YYSTATE YY_START |
Definition at line 182 of file Scanner.cc.
#define YYTABLES_NAME "yytables" |
Definition at line 7030 of file Scanner.cc.
#define yyterminate | ( | ) | return Token::END |
Definition at line 2149 of file Scanner.cc.
#define yytext_ptr yytext |
Definition at line 380 of file Scanner.cc.
typedef short int flex_int16_t |
Definition at line 78 of file Scanner.cc.
typedef int flex_int32_t |
Definition at line 79 of file Scanner.cc.
typedef signed char flex_int8_t |
Definition at line 77 of file Scanner.cc.
typedef unsigned short int flex_uint16_t |
Definition at line 81 of file Scanner.cc.
typedef unsigned int flex_uint32_t |
Definition at line 82 of file Scanner.cc.
typedef unsigned char flex_uint8_t |
Definition at line 80 of file Scanner.cc.
typedef torc::generic::Parser::token Token |
Definition at line 2144 of file Scanner.cc.
Definition at line 2145 of file Scanner.cc.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 203 of file Scanner.cc.
typedef unsigned char YY_CHAR |
Definition at line 378 of file Scanner.cc.
typedef size_t yy_size_t |
Definition at line 239 of file Scanner.cc.
void * Edifalloc | ( | yy_size_t | size | ) |
void Ediffree | ( | void * | ptr | ) |
Definition at line 7023 of file Scanner.cc.
void * Edifrealloc | ( | void * | ptr, |
yy_size_t | size | ||
) |
Definition at line 7011 of file Scanner.cc.
if | ( | ! | yy_init | ) |
int isatty | ( | int | ) |
yylloc step | ( | ) |
while | ( | 1 | ) |
Definition at line 2377 of file Scanner.cc.
|
static |
Definition at line 640 of file Scanner.cc.
|
static |
Definition at line 409 of file Scanner.cc.
register int yy_act |
Definition at line 2323 of file Scanner.cc.
|
static |
Definition at line 877 of file Scanner.cc.
register char * yy_bp |
Definition at line 2322 of file Scanner.cc.
|
static |
Definition at line 1666 of file Scanner.cc.
register char* yy_cp |
Definition at line 2322 of file Scanner.cc.
YY_DECL register yy_state_type yy_current_state |
The main scanner function which does all the work.
Definition at line 2321 of file Scanner.cc.
|
static |
Definition at line 1071 of file Scanner.cc.
|
static |
Definition at line 834 of file Scanner.cc.
|
static |
Definition at line 866 of file Scanner.cc.
|
static |
Definition at line 1265 of file Scanner.cc.
|
static |
Definition at line 2067 of file Scanner.cc.
int yyleng |