Vcsn  2.3
Be Rational
parse.cc File Reference
#include "parse.hh"
#include <cassert>
#include <vcsn/algos/edit-automaton.hh>
#include <lib/vcsn/dot/scan.hh>
Include dependency graph for parse.cc:

Go to the source code of this file.

Namespaces

 vcsn
 
 vcsn::detail
 
 vcsn::detail::dot
 Implementation details of the dot parser.
 

Macros

#define TRY(Loc, Stm)
 Run Stm, and bounces exceptions into parse errors at Loc. More...
 
#define YY_NULLPTR   0
 
#define YY_(msgid)   msgid
 
#define YYRHSLOC(Rhs, K)   ((Rhs)[K].location)
 
#define YYLLOC_DEFAULT(Current, Rhs, N)
 
#define YYUSE(E)   ((void) (E))
 
#define YYCDEBUG   if (yydebug_) (*yycdebug_)
 
#define YY_SYMBOL_PRINT(Title, Symbol)
 
#define YY_REDUCE_PRINT(Rule)
 
#define YY_STACK_PRINT()
 
#define yyerrok   (yyerrstatus_ = 0)
 
#define yyclearin   (yyla.clear ())
 
#define YYACCEPT   goto yyacceptlab
 
#define YYABORT   goto yyabortlab
 
#define YYERROR   goto yyerrorlab
 
#define YYRECOVERING()   (!!yyerrstatus_)
 
#define YYCASE_(N, S)
 

Functions

static std::ostream & vcsn::detail::dot::operator<< (std::ostream &o, const states_t ss)
 
static std::ostream & vcsn::detail::dot::operator<< (std::ostream &o, const paths_t ps)
 
static parser::symbol_type vcsn::detail::dot::yylex (driver &driver_)
 Use our local scanner object. More...
 

Macro Definition Documentation

#define TRY (   Loc,
  Stm 
)
Value:
do { \
try \
{ \
Stm; \
} \
catch (std::exception& e) \
{ \
error(Loc, e.what()); \
YYERROR; \
} \
} while (false)

Run Stm, and bounces exceptions into parse errors at Loc.

Definition at line 36 of file parse.cc.

Referenced by vcsn::detail::dot::parser::parse().

#define YY_ (   msgid)    msgid

Definition at line 135 of file parse.cc.

Referenced by vcsn::detail::dot::parser::yysyntax_error_().

#define YY_NULLPTR   0
#define YY_REDUCE_PRINT (   Rule)
Value:
do { \
if (yydebug_) \
yy_reduce_print_ (Rule); \
} while (false)

Definition at line 179 of file parse.cc.

Referenced by vcsn::detail::dot::parser::parse().

#define YY_STACK_PRINT ( )
Value:
do { \
if (yydebug_) \
yystack_print_ (); \
} while (false)

Definition at line 185 of file parse.cc.

Referenced by vcsn::detail::dot::parser::parse().

#define YY_SYMBOL_PRINT (   Title,
  Symbol 
)
Value:
do { \
if (yydebug_) \
{ \
*yycdebug_ << Title << ' '; \
yy_print_ (*yycdebug_, Symbol); \
*yycdebug_ << std::endl; \
} \
} while (false)

Definition at line 169 of file parse.cc.

Referenced by vcsn::detail::dot::parser::parse(), vcsn::detail::dot::parser::yy_destroy_(), vcsn::detail::dot::parser::yy_reduce_print_(), and vcsn::detail::dot::parser::yypush_().

#define YYABORT   goto yyabortlab

Definition at line 204 of file parse.cc.

Referenced by vcsn::detail::dot::parser::parse().

#define YYACCEPT   goto yyacceptlab

Definition at line 203 of file parse.cc.

#define YYCASE_ (   N,
 
)
Value:
case N: \
yyformat = S; \
break

Referenced by vcsn::detail::dot::parser::yysyntax_error_().

#define YYCDEBUG   if (yydebug_) (*yycdebug_)

Definition at line 167 of file parse.cc.

Referenced by vcsn::detail::dot::parser::parse().

#define yyclearin   (yyla.clear ())

Definition at line 201 of file parse.cc.

#define yyerrok   (yyerrstatus_ = 0)

Definition at line 200 of file parse.cc.

#define YYERROR   goto yyerrorlab

Definition at line 205 of file parse.cc.

Referenced by vcsn::detail::dot::parser::parse().

#define YYLLOC_DEFAULT (   Current,
  Rhs,
 
)
Value:
if (N) \
{ \
(Current).begin = YYRHSLOC (Rhs, 1).begin; \
(Current).end = YYRHSLOC (Rhs, N).end; \
} \
else \
{ \
(Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \
} \
while (/*CONSTCOND*/ false)
#define YYRHSLOC(Rhs, K)
Definition: parse.cc:139
if(exp.max==-1)
Definition: multiply.hh:381

Definition at line 145 of file parse.cc.

Referenced by vcsn::detail::dot::parser::parse().

#define YYRECOVERING ( )    (!!yyerrstatus_)

Definition at line 206 of file parse.cc.

#define YYRHSLOC (   Rhs,
 
)    ((Rhs)[K].location)

Definition at line 139 of file parse.cc.

#define YYUSE (   E)    ((void) (E))

Definition at line 161 of file parse.cc.

Referenced by vcsn::detail::dot::parser::yy_print_().