#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
#include <complex>
#include <limits>
#include "lex.yy.c"
#include <stddef.h>
Go to the source code of this file.
|
enum | yytokentype {
TXVAR = 258,
TVALUE = 259,
TMUL = 260,
TDIV = 261,
TPLUS = 262,
TMINUS = 263,
TLPAREN = 264,
TRPAREN = 265,
TPOW = 266,
TEND = 267,
TCOMMA = 268,
TEXP = 269,
UMINUS = 270,
EXP = 271,
CPLX = 272
} |
|
#define __attribute__ |
( |
|
Spec | ) |
/* empty */ |
#define YY_ |
( |
|
Msgid | ) |
Msgid |
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
#define YY_IGNORE_MAYBE_UNINITIALIZED_END |
#define YY_INITIAL_VALUE |
( |
|
Value | ) |
Value |
#define YY_REDUCE_PRINT |
( |
|
Rule | ) |
|
#define YY_STACK_PRINT |
( |
|
Bottom, |
|
|
|
Top |
|
) |
| |
#define YY_SYMBOL_PRINT |
( |
|
Title, |
|
|
|
Type, |
|
|
|
Value, |
|
|
|
Location |
|
) |
| |
#define YY_YY_PARSER_TAB_H_INCLUDED |
#define YYABORT goto yyabortlab |
#define YYACCEPT goto yyacceptlab |
#define YYBACKUP |
( |
|
Token, |
|
|
|
Value |
|
) |
| |
Value:
{ \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (
YY_(
"syntax error: cannot back up"));
\
if(!(yy_init))
Definition: lex.mpoly.c:689
#define YY_(Msgid)
Definition: parser.hpp:242
while(1)
Definition: lex.mpoly.c:715
#define YYERROR
Definition: parser.hpp:585
#define YYEMPTY
Definition: parser.hpp:580
#define YYBISON_VERSION "3.0" |
#define yyclearin (yychar = YYEMPTY) |
#define YYCOPY |
( |
|
Dst, |
|
|
|
Src, |
|
|
|
Count |
|
) |
| |
Value:do \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
while(1)
Definition: lex.mpoly.c:715
#define YYSIZE_T
Definition: parser.hpp:226
#define YYDPRINTF |
( |
|
Args | ) |
|
#define yyerrok (yyerrstatus = 0) |
#define YYERROR goto yyerrorlab |
#define YYERROR_VERBOSE 0 |
#define yypact_value_is_default |
( |
|
Yystate | ) |
(!!((Yystate) == (-8))) |
#define YYPOPSTACK |
( |
|
N | ) |
(yyvsp -= (N), yyssp -= (N)) |
#define YYRECOVERING |
( |
| ) |
(!!yyerrstatus) |
#define YYSKELETON_NAME "yacc.c" |
#define YYSTACK_BYTES |
( |
|
N | ) |
|
Value:
#define YYSTACK_GAP_MAXIMUM
Definition: parser.hpp:361
short int yytype_int16
Definition: parser.hpp:216
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define YYSTACK_RELOCATE |
( |
|
Stack_alloc, |
|
|
|
Stack |
|
) |
| |
Value:do \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yyptr += yynewbytes / sizeof (*yyptr); \
#define YYSTACK_GAP_MAXIMUM
Definition: parser.hpp:361
while(1)
Definition: lex.mpoly.c:715
#define YYCOPY(Dst, Src, Count)
Definition: parser.hpp:397
#define YYSIZE_T
Definition: parser.hpp:226
#define YYSTYPE_IS_DECLARED 1 |
#define YYSTYPE_IS_TRIVIAL 1 |
#define yytable_value_is_error |
( |
|
Yytable_value | ) |
0 |
#define YYUSE |
( |
|
E | ) |
((void) (E)) |
Enumerator |
---|
TXVAR |
|
TVALUE |
|
TMUL |
|
TDIV |
|
TPLUS |
|
TMINUS |
|
TLPAREN |
|
TRPAREN |
|
TPOW |
|
TEND |
|
TCOMMA |
|
TEXP |
|
UMINUS |
|
EXP |
|
CPLX |
|
template<class T >
T* from_string |
( |
std::string |
s | ) |
|
template<>
std::complex<double>* from_string |
( |
std::string |
s | ) |
|
template<>
std::complex<long double>* from_string |
( |
std::string |
s | ) |
|
template<typename T >
T* from_string_impl |
( |
std::string & |
s, |
|
|
bool2type< true > |
|
|
) |
| |
template<typename T >
T* from_string_impl |
( |
std::string & |
s, |
|
|
bool2type< false > |
|
|
) |
| |