NCBI C++ ToolKit
Classes | Macros | Typedefs | Enumerations | Functions | Variables
newick.tab.cpp File Reference
#include <ncbi_pch.hpp>
#include <algo/phy_tree/phy_node.hpp>
+ Include dependency graph for newick.tab.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

union  YYSTYPE
 
union  yyalloc
 

Macros

#define YYBISON   1
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYPURE   0
 
#define YYLSP_NEEDED   0
 
#define yyparse   newickparse
 
#define yylex   newicklex
 
#define yyerror   newickerror
 
#define yylval   newicklval
 
#define yychar   newickchar
 
#define yydebug   newickdebug
 
#define yynerrs   newicknerrs
 
#define YYTOKENTYPE
 
#define LABEL   258
 
#define NUM   259
 
#define YYINITDEPTH   10000
 
#define YYDEBUG   0
 
#define YYERROR_VERBOSE   0
 
#define yystype   YYSTYPE /* obsolescent; will be withdrawn */
 
#define YYSTYPE_IS_DECLARED   1
 
#define YYSTYPE_IS_TRIVIAL   1
 
#define YYSTACK_ALLOC   malloc
 
#define YYSTACK_FREE   free
 
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
 
#define YYSTACK_BYTES(N)
 
#define YYCOPY(To, From, Count)
 
#define YYSTACK_RELOCATE(Stack)
 
#define YYFINAL   10
 
#define YYLAST   17
 
#define YYNTOKENS   10
 
#define YYNNTS   4
 
#define YYNRULES   12
 
#define YYNSTATES   21
 
#define YYUNDEFTOK   2
 
#define YYMAXUTOK   259
 
#define YYTRANSLATE(YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYPACT_NINF   -8
 
#define YYTABLE_NINF   -1
 
#define YYSIZE_T   unsigned int
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYEMPTY   (-2)
 
#define YYEOF   0
 
#define YYACCEPT   goto yyacceptlab
 
#define YYABORT   goto yyabortlab
 
#define YYERROR   goto yyerrlab1
 
#define YYFAIL   goto yyerrlab
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYBACKUP(Token, Value)
 
#define YYTERROR   1
 
#define YYERRCODE   256
 
#define YYLLOC_DEFAULT(Current, Rhs, N)
 
#define YYLEX   yylex ()
 
#define YYDPRINTF(Args)
 
#define YYDSYMPRINT(Args)
 
#define YYDSYMPRINTF(Title, Token, Value, Location)
 
#define YY_STACK_PRINT(Bottom, Top)
 
#define YY_REDUCE_PRINT(Rule)
 
#define YYMAXDEPTH   10000
 
#define YYPOPSTACK   (yyvsp--, yyssp--)
 

Typedefs

typedef union YYSTYPE YYSTYPE
 
typedef short yysigned_char
 

Enumerations

enum  yytokentype {
  LABEL = 258 , NUM = 259 , LABEL = 258 , NUM = 259 ,
  NAME = 258 , STRING = 259 , NUM = 260 , NOT = 261 ,
  AND = 262 , OR = 263 , EQ = 264 , NOTEQ = 265 ,
  GT = 266 , GE = 267 , LT = 268 , LE = 269 ,
  IDENT = 258 , STRING = 259 , NUM_INT = 260 , SELECT = 261 ,
  FROM = 262 , WHERE = 263 , FUNCTION = 264 , AND = 265 ,
  NOT = 266 , OR = 267 , SUB = 268 , XOR = 269 ,
  RANGE = 270 , EQ = 271 , NOTEQ = 272 , GT = 273 ,
  GE = 274 , LT = 275 , LE = 276 , BETWEEN = 277 ,
  NOT_BETWEEN = 278 , LIKE = 279 , NOT_LIKE = 280 , IN = 281 ,
  NOT_IN = 282
}
 

Functions

 USING_SCOPE (ncbi)
 
void newickerror (const char *error)
 
int newicklex (void)
 
static void yydestruct (yytype, yyvaluep) int yytype
 
 switch (yytype)
 
int newickparse ()
 
void newick_flex_reset (void)
 
TPhyTreeNodeReadNewickTree (CNcbiIstream &is)
 Newick format input. More...
 

Variables

static int nodecount = 0
 
static TPhyTreeNodeg_Tree = 0
 
CNcbiIstreamg_NewickIstr
 
vector< TPhyTreeNode * > g_NodeList
 
static const unsigned char yytranslate []
 
static const unsigned char yyr1 []
 
static const unsigned char yyr2 []
 
static const unsigned char yydefact []
 
static const yysigned_char yydefgoto []
 
static const yysigned_char yypact []
 
static const yysigned_char yypgoto []
 
static const unsigned char yytable []
 
static const yysigned_char yycheck []
 
static const unsigned char yystos []
 
YYSTYPEyyvaluep
 
int newickchar
 
YYSTYPE newicklval
 
int newicknerrs
 

Macro Definition Documentation

◆ LABEL

#define LABEL   258

Definition at line 71 of file newick.tab.cpp.

◆ NUM

#define NUM   259

Definition at line 72 of file newick.tab.cpp.

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT (   Rule)

Definition at line 601 of file newick.tab.cpp.

◆ YY_STACK_PRINT

#define YY_STACK_PRINT (   Bottom,
  Top 
)

Definition at line 600 of file newick.tab.cpp.

◆ YYABORT

#define YYABORT   goto yyabortlab

Definition at line 455 of file newick.tab.cpp.

◆ YYACCEPT

#define YYACCEPT   goto yyacceptlab

Definition at line 454 of file newick.tab.cpp.

◆ YYBACKUP

#define YYBACKUP (   Token,
  Value 
)
Value:
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
yytoken = YYTRANSLATE (yychar); \
YYPOPSTACK; \
goto yybackup; \
} \
else \
{ \
yyerror ("syntax error: cannot back up");\
YYERROR; \
} \
while (0)
if(yy_accept[yy_current_state])
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
Definition: document.h:2107
#define yychar
Definition: newick.tab.cpp:56
#define YYTRANSLATE(YYX)
Definition: newick.tab.cpp:281
#define YYEMPTY
Definition: newick.tab.cpp:451

Definition at line 466 of file newick.tab.cpp.

◆ YYBISON

#define YYBISON   1

Definition at line 39 of file newick.tab.cpp.

◆ yychar

#define yychar   newickchar

Definition at line 56 of file newick.tab.cpp.

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

Definition at line 450 of file newick.tab.cpp.

◆ YYCOPY

#define YYCOPY (   To,
  From,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (0)

Definition at line 228 of file newick.tab.cpp.

◆ yydebug

#define yydebug   newickdebug

Definition at line 57 of file newick.tab.cpp.

◆ YYDEBUG

#define YYDEBUG   0

Definition at line 136 of file newick.tab.cpp.

◆ YYDPRINTF

#define YYDPRINTF (   Args)

Definition at line 597 of file newick.tab.cpp.

◆ YYDSYMPRINT

#define YYDSYMPRINT (   Args)

Definition at line 598 of file newick.tab.cpp.

◆ YYDSYMPRINTF

#define YYDSYMPRINTF (   Title,
  Token,
  Value,
  Location 
)

Definition at line 599 of file newick.tab.cpp.

◆ YYEMPTY

#define YYEMPTY   (-2)

Definition at line 451 of file newick.tab.cpp.

◆ YYEOF

#define YYEOF   0

Definition at line 452 of file newick.tab.cpp.

◆ YYERRCODE

#define YYERRCODE   256

Definition at line 484 of file newick.tab.cpp.

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

Definition at line 449 of file newick.tab.cpp.

◆ yyerror

#define yyerror   newickerror

Definition at line 54 of file newick.tab.cpp.

◆ YYERROR

#define YYERROR   goto yyerrlab1

Definition at line 456 of file newick.tab.cpp.

◆ YYERROR_VERBOSE

#define YYERROR_VERBOSE   0

Definition at line 144 of file newick.tab.cpp.

◆ YYFAIL

#define YYFAIL   goto yyerrlab

Definition at line 462 of file newick.tab.cpp.

◆ YYFINAL

#define YYFINAL   10

Definition at line 264 of file newick.tab.cpp.

◆ YYINITDEPTH

#define YYINITDEPTH   10000

Definition at line 131 of file newick.tab.cpp.

◆ YYLAST

#define YYLAST   17

Definition at line 266 of file newick.tab.cpp.

◆ yylex

#define yylex   newicklex

Definition at line 53 of file newick.tab.cpp.

◆ YYLEX

#define YYLEX   yylex ()

Definition at line 502 of file newick.tab.cpp.

◆ YYLLOC_DEFAULT

#define YYLLOC_DEFAULT (   Current,
  Rhs,
  N 
)
Value:
Current.first_line = Rhs[1].first_line; \
Current.first_column = Rhs[1].first_column; \
Current.last_line = Rhs[N].last_line; \
Current.last_column = Rhs[N].last_column;
#define N
Definition: crc32.c:57

Definition at line 490 of file newick.tab.cpp.

◆ YYLSP_NEEDED

#define YYLSP_NEEDED   0

Definition at line 48 of file newick.tab.cpp.

◆ yylval

#define yylval   newicklval

Definition at line 55 of file newick.tab.cpp.

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

Definition at line 622 of file newick.tab.cpp.

◆ YYMAXUTOK

#define YYMAXUTOK   259

Definition at line 279 of file newick.tab.cpp.

◆ yynerrs

#define yynerrs   newicknerrs

Definition at line 58 of file newick.tab.cpp.

◆ YYNNTS

#define YYNNTS   4

Definition at line 271 of file newick.tab.cpp.

◆ YYNRULES

#define YYNRULES   12

Definition at line 273 of file newick.tab.cpp.

◆ YYNSTATES

#define YYNSTATES   21

Definition at line 275 of file newick.tab.cpp.

◆ YYNTOKENS

#define YYNTOKENS   10

Definition at line 269 of file newick.tab.cpp.

◆ YYPACT_NINF

#define YYPACT_NINF   -8

Definition at line 393 of file newick.tab.cpp.

◆ yyparse

#define yyparse   newickparse

Definition at line 52 of file newick.tab.cpp.

◆ YYPOPSTACK

#define YYPOPSTACK   (yyvsp--, yyssp--)

◆ YYPURE

#define YYPURE   0

Definition at line 45 of file newick.tab.cpp.

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 464 of file newick.tab.cpp.

◆ YYSIZE_T

#define YYSIZE_T   unsigned int

Definition at line 446 of file newick.tab.cpp.

◆ YYSKELETON_NAME

#define YYSKELETON_NAME   "yacc.c"

Definition at line 42 of file newick.tab.cpp.

◆ YYSTACK_ALLOC

#define YYSTACK_ALLOC   malloc

Definition at line 195 of file newick.tab.cpp.

◆ YYSTACK_BYTES

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (short) + sizeof (YYSTYPE)) \
union YYSTYPE YYSTYPE
#define YYSTACK_GAP_MAXIMUM
Definition: newick.tab.cpp:213

Definition at line 217 of file newick.tab.cpp.

◆ YYSTACK_FREE

#define YYSTACK_FREE   free

Definition at line 196 of file newick.tab.cpp.

◆ YYSTACK_GAP_MAXIMUM

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

Definition at line 213 of file newick.tab.cpp.

◆ YYSTACK_RELOCATE

#define YYSTACK_RELOCATE (   Stack)
Value:
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack, Stack, yysize); \
Stack = &yyptr->Stack; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (0)

Definition at line 244 of file newick.tab.cpp.

◆ yystype

#define yystype   YYSTYPE /* obsolescent; will be withdrawn */

Definition at line 156 of file newick.tab.cpp.

◆ YYSTYPE_IS_DECLARED

#define YYSTYPE_IS_DECLARED   1

Definition at line 157 of file newick.tab.cpp.

◆ YYSTYPE_IS_TRIVIAL

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 158 of file newick.tab.cpp.

◆ YYTABLE_NINF

#define YYTABLE_NINF   -1

Definition at line 411 of file newick.tab.cpp.

◆ YYTERROR

#define YYTERROR   1

Definition at line 483 of file newick.tab.cpp.

◆ YYTOKENTYPE

#define YYTOKENTYPE

Definition at line 63 of file newick.tab.cpp.

◆ YYTRANSLATE

#define YYTRANSLATE (   YYX)     ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Definition at line 281 of file newick.tab.cpp.

◆ YYUNDEFTOK

#define YYUNDEFTOK   2

Definition at line 278 of file newick.tab.cpp.

Typedef Documentation

◆ yysigned_char

typedef short yysigned_char

Definition at line 260 of file newick.tab.cpp.

◆ YYSTYPE

typedef union YYSTYPE YYSTYPE

Enumeration Type Documentation

◆ yytokentype

Enumerator
LABEL 
NUM 
LABEL 
NUM 
NAME 
STRING 
NUM 
NOT 
AND 
OR 
EQ 
NOTEQ 
GT 
GE 
LT 
LE 
IDENT 
STRING 
NUM_INT 
SELECT 
FROM 
WHERE 
FUNCTION 
AND 
NOT 
OR 
SUB 
XOR 
RANGE 
EQ 
NOTEQ 
GT 
GE 
LT 
LE 
BETWEEN 
NOT_BETWEEN 
LIKE 
NOT_LIKE 
IN 
NOT_IN 

Definition at line 66 of file newick.tab.cpp.

Function Documentation

◆ newick_flex_reset()

void newick_flex_reset ( void  )

Definition at line 1652 of file lex.newick.cpp.

References BEGIN, and newickrestart().

Referenced by ReadNewickTree().

◆ newickerror()

void newickerror ( const char *  error)

Definition at line 1361 of file newick.tab.cpp.

References g_NodeList, g_Tree, and ITERATE.

◆ newicklex()

int newicklex ( void  )

◆ newickparse()

int newickparse ( )

◆ ReadNewickTree()

TPhyTreeNode* ReadNewickTree ( CNcbiIstream is)

Newick format input.

Uses flex/bison lexer/parser.

Warning
This function is not thread safe. The parser stores its state in global variables.

Definition at line 1386 of file newick.tab.cpp.

References g_NewickIstr, g_NodeList, g_Tree, newick_flex_reset(), yyerror, and yyparse.

Referenced by CPhyObjectLoader::Execute(), CPhyloPhylipReader::GetTree(), CMSAToolJob::x_AddTreeProjectItem(), and CMultiReaderApp::xProcessNewick().

◆ switch()

switch ( yytype  )

◆ USING_SCOPE()

USING_SCOPE ( ncbi  )

◆ yydestruct()

static void yydestruct ( yytype  ,
yyvaluep   
)
static

Referenced by newickparse().

Variable Documentation

◆ g_NewickIstr

CNcbiIstream* g_NewickIstr

Definition at line 126 of file newick.tab.cpp.

Referenced by ReadNewickTree().

◆ g_NodeList

vector<TPhyTreeNode*> g_NodeList

Definition at line 128 of file newick.tab.cpp.

Referenced by newickerror(), and ReadNewickTree().

◆ g_Tree

TPhyTreeNode* g_Tree = 0
static

Definition at line 123 of file newick.tab.cpp.

Referenced by newickerror(), newickparse(), and ReadNewickTree().

◆ newickchar

int newickchar

Definition at line 765 of file newick.tab.cpp.

◆ newicklval

YYSTYPE newicklval

Definition at line 768 of file newick.tab.cpp.

Referenced by newicklex().

◆ newicknerrs

int newicknerrs

Definition at line 771 of file newick.tab.cpp.

◆ nodecount

int nodecount = 0
static

Definition at line 122 of file newick.tab.cpp.

Referenced by newickparse().

◆ yycheck

const yysigned_char yycheck[]
static
Initial value:
=
{
2, 8, 3, 3, 7, 6, 9, 8, 8, 4,
0, 5, 14, 4, -1, 8, 4, 4
}

Definition at line 418 of file newick.tab.cpp.

Referenced by newickparse().

◆ yydefact

const unsigned char yydefact[]
static
Initial value:
=
{
10, 9, 10, 0, 0, 0, 0, 11, 0, 8,
1, 2, 7, 4, 10, 6, 0, 12, 0, 3,
5
}

Definition at line 378 of file newick.tab.cpp.

Referenced by newickparse().

◆ yydefgoto

const yysigned_char yydefgoto[]
static
Initial value:
=
{
-1, 4, 5, 8
}

Definition at line 386 of file newick.tab.cpp.

Referenced by newickparse().

◆ yypact

const yysigned_char yypact[]
static
Initial value:
=
{
-1, -7, -1, 5, 10, 6, 9, -8, -3, -8,
-8, -8, -8, 0, -1, 7, 12, -8, 13, -8,
-8
}

Definition at line 394 of file newick.tab.cpp.

Referenced by newickparse().

◆ yypgoto

const yysigned_char yypgoto[]
static
Initial value:
=
{
-8, -8, -2, -8
}

Definition at line 402 of file newick.tab.cpp.

Referenced by newickparse().

◆ yyr1

const unsigned char yyr1[]
static
Initial value:
=
{
0, 10, 11, 12, 12, 12, 12, 12, 12, 12,
12, 13, 13
}

Definition at line 362 of file newick.tab.cpp.

Referenced by newickparse().

◆ yyr2

const unsigned char yyr2[]
static
Initial value:
=
{
0, 2, 2, 5, 3, 6, 4, 3, 2, 1,
0, 1, 3
}

Definition at line 369 of file newick.tab.cpp.

Referenced by newickparse().

◆ yystos

const unsigned char yystos[]
static
Initial value:
=
{
0, 3, 6, 8, 11, 12, 8, 12, 13, 4,
0, 5, 4, 7, 9, 3, 8, 12, 8, 4,
4
}

Definition at line 426 of file newick.tab.cpp.

Referenced by newickparse().

◆ yytable

const unsigned char yytable[]
static
Initial value:
=
{
7, 6, 1, 15, 13, 2, 14, 3, 16, 9,
10, 11, 17, 12, 0, 18, 19, 20
}

Definition at line 412 of file newick.tab.cpp.

Referenced by newickparse().

◆ yytranslate

const unsigned char yytranslate[]
static
Initial value:
=
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
6, 7, 2, 2, 9, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 8, 5,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 2, 3, 4
}

Definition at line 285 of file newick.tab.cpp.

◆ yyvaluep

YYSTYPE* yyvaluep

Definition at line 731 of file newick.tab.cpp.

Referenced by yy_symbol_print(), yy_symbol_value_print(), yydestruct(), and yysymprint().

Modified on Tue May 28 05:52:33 2024 by modify_doxy.py rev. 669887