37 #ifndef PARSER_HEADER_H
38 # define PARSER_HEADER_H
81 #include <boost/algorithm/string/predicate.hpp>
82 #include <boost/smart_ptr.hpp>
87 using namespace torc::physical;
89 #define YYSTYPE std::string
99 #define yylex xdl.lexer->lex
104 #line 105 "XdlParser.hpp"
114 #ifdef YYERROR_VERBOSE
115 # undef YYERROR_VERBOSE
116 # define YYERROR_VERBOSE 1
118 # define YYERROR_VERBOSE 1
122 #ifndef YYTOKEN_TABLE
123 # define YYTOKEN_TABLE 0
130 #ifndef YYLLOC_DEFAULT
131 # define YYLLOC_DEFAULT(Current, Rhs, N) \
135 (Current).begin = (Rhs)[1].begin; \
136 (Current).end = (Rhs)[N].end; \
140 (Current).begin = (Current).end = (Rhs)[0].end; \
212 virtual int parse ();
242 virtual void yy_symbol_value_print_ (
int yytype,
249 virtual void yy_symbol_print_ (
int yytype,
304 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
316 typedef signed char rhs_number_type;
318 static const rhs_number_type yyrhs_[];
320 static const unsigned short int yyprhs_[];
322 static const unsigned short int yyrline_[];
324 static const unsigned short int yytoken_number_[];
326 virtual void yy_reduce_print_ (
int r);
328 virtual void yystack_print_ ();
345 inline void yypop_ (
unsigned int n = 1);
static const signed char yypact_ninf_
static const int yyfinal_
static const signed char yypact_[]
For a state, the index in yytable_ of its portion.
int debug_level_type
Type for debugging levels.
static const unsigned char yystos_[]
For a state, its accessing symbol.
void yydestruct_(const char *yymsg, int yytype, semantic_type *yyvaluep, location_type *yylocationp)
Reclaim the memory associated to a symbol.
static const int yyterror_
static const char *const yytname_[]
For a symbol, its name in clear.
stack< location_type > location_stack_type
location stack type.
static const short int yycheck_[]
static const int yyntokens_
static const int yyempty_
virtual std::string yysyntax_error_(int yystate, int tok)
Header for the DeviceDesignator class.
stack< semantic_type > semantic_stack_type
Semantic value stack type.
token::yytokentype token_type
Token type.
static const unsigned int yyuser_token_number_max_
stack< state_type > state_stack_type
State stack type.
unsigned char token_number_type
Internal symbol numbers.
void yypop_(unsigned int n=1)
Pop n symbols the three stacks.
virtual void error(const location_type &loc, const std::string &msg)
YYSTYPE semantic_type
Symbol semantic values.
Header for the XdlImporter class.
static const unsigned char yydefact_[]
state_stack_type yystate_stack_
The state stack.
Header for torc::physical output stream helpers.
virtual std::string yytnamerr_(const char *n)
Convert the symbol name n to a form suitable for a diagnostic.
static const unsigned char yyr1_[]
For a rule, its LHS.
static const short int yydefgoto_[]
debug_level_type debug_level() const
The current debugging level.
static const unsigned char yyr2_[]
For a rule, its RHS length.
location_stack_type yylocation_stack_
The location stack.
location location_type
Symbol locations.
static const short int yytable_[]
void set_debug_stream(std::ostream &)
Set the current debugging stream.
XdlParser(class XdlImporter &xdl_yyarg)
Build a parser object.
static const token_number_type yyundef_token_
token_number_type yytranslate_(int t)
Convert a scanner token number t to a symbol number.
Importer from XDL format into a physical design.
int state_type
State numbers.
static const signed char yypgoto_[]
Header for the Factory class.
void set_debug_level(debug_level_type l)
Set the current debugging level.
std::ostream & debug_stream() const
The current debugging stream.
semantic_stack_type yysemantic_stack_
The semantic value stack.
static const signed char yytable_ninf_
static const int yyerrcode_