libutap
0.93
Uppaal Timed Automata Parser
|
#include "libparser.h"
#include "utap/position.h"
#include <cstring>
#include <stddef.h>
#include "lexer.cc"
Go to the source code of this file.
Macros | |
#define | YYBISON 1 |
#define | YYBISON_VERSION "3.3.2" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 0 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | yyparse utap_parse |
#define | yylex utap_lex |
#define | yyerror utap_error |
#define | yydebug utap_debug |
#define | yynerrs utap_nerrs |
#define | yylval utap_lval |
#define | yychar utap_char |
#define | yylloc utap_lloc |
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
#define | YYLTYPE position_t |
#define | YYERROR_VERBOSE 1 |
#define | CALL(first, last, call) do { ch->setPosition(first.start, last.end); try { ch->call; } catch (TypeException &te) { ch->handleError(te.what()); } } while (0) |
#define | YY_(msg) utap_msg(msg) |
#define | NB_STR 8 |
#define | YY_NULLPTR ((void*)0) |
#define | YYERROR_VERBOSE 1 |
#define | YYDEBUG 0 |
#define | YYTOKENTYPE |
#define | T_ASSIGNMENT 258 |
#define | T_ASSPLUS 259 |
#define | T_ASSMINUS 260 |
#define | T_ASSMULT 261 |
#define | T_ASSDIV 262 |
#define | T_ASSMOD 263 |
#define | T_ASSOR 264 |
#define | T_ASSAND 265 |
#define | T_ASSXOR 266 |
#define | T_ASSLSHIFT 267 |
#define | T_ASSRSHIFT 268 |
#define | T_EXCLAM 269 |
#define | T_INCREMENT 270 |
#define | T_DECREMENT 271 |
#define | T_PLUS 272 |
#define | T_MINUS 273 |
#define | T_MULT 274 |
#define | T_DIV 275 |
#define | T_MOD 276 |
#define | T_OR 277 |
#define | T_XOR 278 |
#define | T_LSHIFT 279 |
#define | T_RSHIFT 280 |
#define | T_BOOL_AND 281 |
#define | T_BOOL_OR 282 |
#define | T_KW_AND 283 |
#define | T_KW_OR 284 |
#define | T_KW_XOR 285 |
#define | T_KW_IMPLY 286 |
#define | T_KW_NOT 287 |
#define | T_SUP 288 |
#define | T_INF 289 |
#define | T_ABS 290 |
#define | T_FABS 291 |
#define | T_FMOD 292 |
#define | T_FMA 293 |
#define | T_FMAX 294 |
#define | T_FMIN 295 |
#define | T_FDIM 296 |
#define | T_EXP 297 |
#define | T_EXP2 298 |
#define | T_EXPM1 299 |
#define | T_LN 300 |
#define | T_LOG 301 |
#define | T_LOG10 302 |
#define | T_LOG2 303 |
#define | T_LOG1P 304 |
#define | T_POW 305 |
#define | T_SQRT 306 |
#define | T_CBRT 307 |
#define | T_HYPOT 308 |
#define | T_SIN 309 |
#define | T_COS 310 |
#define | T_TAN 311 |
#define | T_ASIN 312 |
#define | T_ACOS 313 |
#define | T_ATAN 314 |
#define | T_ATAN2 315 |
#define | T_SINH 316 |
#define | T_COSH 317 |
#define | T_TANH 318 |
#define | T_ASINH 319 |
#define | T_ACOSH 320 |
#define | T_ATANH 321 |
#define | T_ERF 322 |
#define | T_ERFC 323 |
#define | T_TGAMMA 324 |
#define | T_LGAMMA 325 |
#define | T_CEIL 326 |
#define | T_FLOOR 327 |
#define | T_TRUNC 328 |
#define | T_ROUND 329 |
#define | T_FINT 330 |
#define | T_LDEXP 331 |
#define | T_ILOGB 332 |
#define | T_LOGB 333 |
#define | T_NEXTAFTER 334 |
#define | T_NEXTTOWARD 335 |
#define | T_COPYSIGN 336 |
#define | T_FPCLASSIFY 337 |
#define | T_ISFINITE 338 |
#define | T_ISINF 339 |
#define | T_ISNAN 340 |
#define | T_ISNORMAL 341 |
#define | T_SIGNBIT 342 |
#define | T_ISUNORDERED 343 |
#define | T_RANDOM 344 |
#define | T_RANDOM_ARCSINE 345 |
#define | T_RANDOM_BETA 346 |
#define | T_RANDOM_GAMMA 347 |
#define | T_RANDOM_NORMAL 348 |
#define | T_RANDOM_POISSON 349 |
#define | T_RANDOM_TRI 350 |
#define | T_RANDOM_WEIBULL 351 |
#define | T_FORALL 352 |
#define | T_EXISTS 353 |
#define | T_FOREACH 354 |
#define | T_SUM 355 |
#define | T_LT 356 |
#define | T_LEQ 357 |
#define | T_EQ 358 |
#define | T_NEQ 359 |
#define | T_GEQ 360 |
#define | T_GT 361 |
#define | T_FOR 362 |
#define | T_WHILE 363 |
#define | T_DO 364 |
#define | T_BREAK 365 |
#define | T_CONTINUE 366 |
#define | T_SWITCH 367 |
#define | T_IF 368 |
#define | T_ELSE 369 |
#define | T_CASE 370 |
#define | T_DEFAULT 371 |
#define | T_RETURN 372 |
#define | T_ASSERT 373 |
#define | T_PRIORITY 374 |
#define | T_TYPEDEF 375 |
#define | T_STRUCT 376 |
#define | T_CONST 377 |
#define | T_OLDCONST 378 |
#define | T_URGENT 379 |
#define | T_BROADCAST 380 |
#define | T_TRUE 381 |
#define | T_FALSE 382 |
#define | T_META 383 |
#define | T_SYSTEM 384 |
#define | T_PROCESS 385 |
#define | T_STATE 386 |
#define | T_BRANCHPOINT 387 |
#define | T_COMMIT 388 |
#define | T_INIT 389 |
#define | T_TRANS 390 |
#define | T_SELECT 391 |
#define | T_GUARD 392 |
#define | T_SYNC 393 |
#define | T_ASSIGN 394 |
#define | T_PROBABILITY 395 |
#define | T_BEFORE 396 |
#define | T_AFTER 397 |
#define | T_PROGRESS 398 |
#define | T_ARROW 399 |
#define | T_UNCONTROL_ARROW 400 |
#define | T_IO 401 |
#define | T_QUERY 402 |
#define | T_DEADLOCK 403 |
#define | T_EF 404 |
#define | T_EG 405 |
#define | T_AF 406 |
#define | T_AG 407 |
#define | T_LEADSTO 408 |
#define | T_RESULTSET 409 |
#define | T_EF_PLUS 410 |
#define | T_AG_PLUS 411 |
#define | T_EF_MULT 412 |
#define | T_AG_MULT 413 |
#define | T_SCENARIO 414 |
#define | T_CONTROL 415 |
#define | T_CONTROL_T 416 |
#define | T_SIMULATION 417 |
#define | T_SIMULATE 418 |
#define | T_CONSISTENCY 419 |
#define | T_SPECIFICATION 420 |
#define | T_IMPLEMENTATION 421 |
#define | T_REFINEMENT 422 |
#define | T_GANTT 423 |
#define | T_PMAX 424 |
#define | T_PROBA 425 |
#define | T_DIAMOND 426 |
#define | T_BOX 427 |
#define | T_HASH 428 |
#define | T_ERROR 429 |
#define | T_ID 430 |
#define | T_TYPENAME 431 |
#define | T_NAT 432 |
#define | T_FLOATING 433 |
#define | T_POS_NEG_MAX 434 |
#define | T_BOOL 435 |
#define | T_INT 436 |
#define | T_CHAN 437 |
#define | T_CLOCK 438 |
#define | T_VOID 439 |
#define | T_SCALAR 440 |
#define | T_DOUBLE 441 |
#define | T_NEW 442 |
#define | T_NEW_DECLARATION 443 |
#define | T_NEW_LOCAL_DECL 444 |
#define | T_NEW_INST 445 |
#define | T_NEW_SYSTEM 446 |
#define | T_NEW_PARAMETERS 447 |
#define | T_NEW_INVARIANT 448 |
#define | T_NEW_GUARD 449 |
#define | T_NEW_SYNC 450 |
#define | T_NEW_ASSIGN 451 |
#define | T_NEW_SELECT 452 |
#define | T_EXPONENTIALRATE 453 |
#define | T_OLD 454 |
#define | T_OLD_DECLARATION 455 |
#define | T_OLD_LOCAL_DECL 456 |
#define | T_OLD_INST 457 |
#define | T_OLD_PARAMETERS 458 |
#define | T_OLD_INVARIANT 459 |
#define | T_OLD_GUARD 460 |
#define | T_OLD_ASSIGN 461 |
#define | T_PROPERTY 462 |
#define | T_EXPRESSION 463 |
#define | T_EXPRESSION_LIST 464 |
#define | T_XTA_PROCESS 465 |
#define | T_INSTANCELINE 466 |
#define | T_MESSAGE 467 |
#define | T_UPDATE 468 |
#define | T_CONDITION 469 |
#define | T_MITL_AND 470 |
#define | T_MITL_OR 471 |
#define | T_MITL_NEXT 472 |
#define | T_DYNAMIC 473 |
#define | T_HYBRID 474 |
#define | T_SPAWN 475 |
#define | T_EXIT 476 |
#define | T_NUMOF 477 |
#define | T_MIN 478 |
#define | T_MAX 479 |
#define | UOPERATOR 480 |
#define | YYSTYPE_IS_TRIVIAL 1 |
#define | YYSTYPE_IS_DECLARED 1 |
#define | YYSIZE_T size_t |
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define | YY_ATTRIBUTE(Spec) /* empty */ |
#define | YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
#define | YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
#define | YYUSE(E) ((void) (E)) |
#define | YY_INITIAL_VALUE(Value) Value |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYMALLOC malloc |
#define | YYFREE free |
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_BYTES(N) |
#define | YYCOPY_NEEDED 1 |
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
#define | YYCOPY(Dst, Src, Count) |
#define | YYFINAL 199 |
#define | YYLAST 12460 |
#define | YYNTOKENS 247 |
#define | YYNNTS 211 |
#define | YYNRULES 627 |
#define | YYNSTATES 1266 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 480 |
#define | YYTRANSLATE(YYX) ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -1135 |
#define | yypact_value_is_default(Yystate) (!!((Yystate) == (-1135))) |
#define | YYTABLE_NINF -625 |
#define | yytable_value_is_error(Yytable_value) 0 |
#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 yyerrorlab |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYBACKUP(Token, Value) |
#define | YYTERROR 1 |
#define | YYERRCODE 256 |
#define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
#define | YYDPRINTF(Args) |
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YYINITDEPTH 200 |
#define | YYMAXDEPTH 10000 |
#define | YYCASE_(N, S) |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) |
#define | YYSYNTAX_ERROR |
Typedefs | |
typedef union YYSTYPE | YYSTYPE |
typedef unsigned char | yytype_uint8 |
typedef signed char | yytype_int8 |
typedef unsigned short | yytype_uint16 |
typedef short | yytype_int16 |
Functions | |
static void | utap_error (const char *msg) |
static int | lexer_flex () |
static int | utap_lex () |
const char * | utap_msg (const char *msg) |
int | utap_parse (void) |
void * | malloc (YYSIZE_T) |
void | free (void *) |
static YYSIZE_T | yystrlen (const char *yystr) |
static char * | yystpcpy (char *yydest, const char *yysrc) |
static YYSIZE_T | yytnamerr (char *yyres, const char *yystr) |
static int | yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) |
static void | yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp) |
int | yyparse (void) |
static void | setStartToken (xta_part_t part, bool newxta) |
static int32_t | parseXTA (ParserBuilder *aParserBuilder, bool newxta, xta_part_t part, std::string xpath) |
static int32_t | parseProperty (ParserBuilder *aParserBuilder, const std::string &xpath) |
int32_t | parseXTA (const char *str, ParserBuilder *builder, bool newxta, xta_part_t part, const std::string &xpath) |
Parse a buffer in the XTA format, reporting the system to the given implementation of the the ParserBuilder interface and reporting errors to the ErrorHandler. More... | |
int32_t | parseXTA (const char *str, ParserBuilder *builder, bool newxta) |
int32_t | parseXTA (FILE *file, ParserBuilder *builder, bool newxta) |
Parse a file in the XTA format, reporting the system to the given implementation of the the ParserBuilder interface and reporting errors to the ErrorHandler. More... | |
int32_t | parseProperty (const char *str, ParserBuilder *aParserBuilder, const std::string &xpath) |
Parse properties from a buffer. More... | |
int32_t | parseProperty (FILE *file, ParserBuilder *aParserBuilder) |
Parse properties from a file. More... | |
Variables | |
static ParserBuilder * | ch |
static syntax_t | syntax |
static int | syntax_token = 0 |
static char | rootTransId [MAXLEN] |
static int | types = 0 |
YYSTYPE | utap_lval |
YYLTYPE | utap_lloc |
static const yytype_uint8 | yytranslate [] |
static const char *const | yytname [] |
static const yytype_int16 | yypact [] |
static const yytype_uint16 | yydefact [] |
static const yytype_int16 | yypgoto [] |
static const yytype_int16 | yydefgoto [] |
static const yytype_int16 | yytable [] |
static const yytype_int16 | yycheck [] |
static const yytype_uint16 | yystos [] |
static const yytype_uint16 | yyr1 [] |
static const yytype_uint8 | yyr2 [] |
int | yychar |
YYSTYPE | yylval |
YYLTYPE | yylloc |
int | yynerrs |
#define CALL | ( | first, | |
last, | |||
call | |||
) | do { ch->setPosition(first.start, last.end); try { ch->call; } catch (TypeException &te) { ch->handleError(te.what()); } } while (0) |
#define NB_STR 8 |
Referenced by utap_msg().
#define T_CONDITION 469 |
Definition at line 676 of file parser.cc.
Referenced by setStartToken().
#define T_EXPONENTIALRATE 453 |
Definition at line 660 of file parser.cc.
Referenced by setStartToken().
#define T_EXPRESSION 463 |
Definition at line 670 of file parser.cc.
Referenced by setStartToken().
#define T_EXPRESSION_LIST 464 |
Definition at line 671 of file parser.cc.
Referenced by setStartToken().
#define T_INSTANCELINE 466 |
Definition at line 673 of file parser.cc.
Referenced by setStartToken().
#define T_MESSAGE 467 |
Definition at line 674 of file parser.cc.
Referenced by setStartToken().
#define T_NEW 442 |
Definition at line 649 of file parser.cc.
Referenced by setStartToken().
#define T_NEW_ASSIGN 451 |
Definition at line 658 of file parser.cc.
Referenced by setStartToken().
#define T_NEW_DECLARATION 443 |
Definition at line 650 of file parser.cc.
Referenced by setStartToken().
#define T_NEW_GUARD 449 |
Definition at line 656 of file parser.cc.
Referenced by setStartToken().
#define T_NEW_INST 445 |
Definition at line 652 of file parser.cc.
Referenced by setStartToken().
#define T_NEW_INVARIANT 448 |
Definition at line 655 of file parser.cc.
Referenced by setStartToken().
#define T_NEW_LOCAL_DECL 444 |
Definition at line 651 of file parser.cc.
Referenced by setStartToken().
#define T_NEW_PARAMETERS 447 |
Definition at line 654 of file parser.cc.
Referenced by setStartToken().
#define T_NEW_SELECT 452 |
Definition at line 659 of file parser.cc.
Referenced by setStartToken().
#define T_NEW_SYNC 450 |
Definition at line 657 of file parser.cc.
Referenced by setStartToken().
#define T_NEW_SYSTEM 446 |
Definition at line 653 of file parser.cc.
Referenced by setStartToken().
#define T_OLD 454 |
Definition at line 661 of file parser.cc.
Referenced by setStartToken().
#define T_OLD_ASSIGN 461 |
Definition at line 668 of file parser.cc.
Referenced by setStartToken().
#define T_OLD_DECLARATION 455 |
Definition at line 662 of file parser.cc.
Referenced by setStartToken().
#define T_OLD_GUARD 460 |
Definition at line 667 of file parser.cc.
Referenced by setStartToken().
#define T_OLD_INST 457 |
Definition at line 664 of file parser.cc.
Referenced by setStartToken().
#define T_OLD_INVARIANT 459 |
Definition at line 666 of file parser.cc.
Referenced by setStartToken().
#define T_OLD_LOCAL_DECL 456 |
Definition at line 663 of file parser.cc.
Referenced by setStartToken().
#define T_OLD_PARAMETERS 458 |
Definition at line 665 of file parser.cc.
Referenced by setStartToken().
#define T_PROBABILITY 395 |
Definition at line 602 of file parser.cc.
Referenced by setStartToken().
#define T_PROPERTY 462 |
Definition at line 669 of file parser.cc.
Referenced by setStartToken().
#define T_UPDATE 468 |
Definition at line 675 of file parser.cc.
Referenced by setStartToken().
#define T_XTA_PROCESS 465 |
Definition at line 672 of file parser.cc.
Referenced by setStartToken().
#define YY_ | ( | msg | ) | utap_msg(msg) |
Definition at line 133 of file parser.cc.
Referenced by yyparse(), and yysyntax_error().
#define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
#define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 826 of file parser.cc.
Referenced by yydestruct(), and yyparse().
#define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 827 of file parser.cc.
Referenced by yydestruct(), and yyparse().
#define YY_NULLPTR ((void*)0) |
Definition at line 213 of file parser.cc.
Referenced by yysyntax_error().
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
Definition at line 4572 of file parser.cc.
Referenced by yydestruct(), and yyparse().
#define YYACCEPT goto yyacceptlab |
#define YYBACKUP | ( | Token, | |
Value | |||
) |
#define YYCASE_ | ( | N, | |
S | |||
) |
Referenced by yysyntax_error().
#define YYCOPY | ( | Dst, | |
Src, | |||
Count | |||
) |
#define YYEMPTY (-2) |
Definition at line 4347 of file parser.cc.
Referenced by yyparse(), and yysyntax_error().
#define yyerror utap_error |
#define YYLAST 12460 |
Definition at line 967 of file parser.cc.
Referenced by yyparse(), and yysyntax_error().
#define YYLLOC_DEFAULT | ( | Current, | |
Rhs, | |||
N | |||
) |
#define YYLTYPE position_t |
#define YYNTOKENS 247 |
Definition at line 970 of file parser.cc.
Referenced by yyparse(), and yysyntax_error().
#define yypact_value_is_default | ( | Yystate | ) | (!!((Yystate) == (-1135))) |
Definition at line 1241 of file parser.cc.
Referenced by yyparse(), and yysyntax_error().
#define yyparse utap_parse |
#define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) |
Referenced by yyparse().
#define YYSIZE_T size_t |
Definition at line 769 of file parser.cc.
Referenced by yyparse(), yystpcpy(), yystrlen(), yysyntax_error(), and yytnamerr().
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 876 of file parser.cc.
Referenced by yysyntax_error().
#define YYSTACK_BYTES | ( | N | ) |
Definition at line 920 of file parser.cc.
Referenced by yyparse().
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
Definition at line 931 of file parser.cc.
Referenced by yyparse().
#define YYSYNTAX_ERROR |
Referenced by yyparse().
#define yytable_value_is_error | ( | Yytable_value | ) | 0 |
Definition at line 1246 of file parser.cc.
Referenced by yyparse(), and yysyntax_error().
#define YYTERROR 1 |
Definition at line 4375 of file parser.cc.
Referenced by yyparse(), and yysyntax_error().
#define YYTRANSLATE | ( | YYX | ) | ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define YYUSE | ( | E | ) | ((void) (E)) |
Definition at line 809 of file parser.cc.
Referenced by yydestruct().
typedef short yytype_int16 |
typedef signed char yytype_int8 |
typedef unsigned short yytype_uint16 |
typedef unsigned char yytype_uint8 |
enum yytokentype |
void free | ( | void * | ) |
Referenced by get_token(), if(), UTAP::Partitioner::partition(), and UTAP::Partitioner::~Partitioner().
|
static |
|
static |
Definition at line 8931 of file parser.cc.
References UTAP::S_PROPERTY, setStartToken(), syntax, SYNTAX_PROPERTY, and utap_parse().
Referenced by parseProperty().
int32_t parseProperty | ( | const char * | str, |
UTAP::ParserBuilder * | aParserBuilder, | ||
const std::string & | xpath = "" |
||
) |
Parse properties from a buffer.
The properties are reported using the given ParserBuilder and errors are reported using the ErrorHandler.
Definition at line 8968 of file parser.cc.
References parseProperty(), and YY_CURRENT_BUFFER.
Referenced by UTAP::ParserBuilder::~ParserBuilder().
int32_t parseProperty | ( | FILE * | , |
UTAP::ParserBuilder * | aParserBuilder | ||
) |
Parse properties from a file.
The properties are reported using the given ParserBuilder and errors are reported using the ErrorHandler.
Definition at line 8977 of file parser.cc.
References parseProperty(), YY_BUF_SIZE, and YY_CURRENT_BUFFER.
|
static |
Definition at line 8906 of file parser.cc.
References setStartToken(), syntax, SYNTAX_GUIDING, SYNTAX_NEW, SYNTAX_OLD, and utap_parse().
Referenced by main(), parseXTA(), and UTAP::symbol().
int32_t parseXTA | ( | const char * | , |
UTAP::ParserBuilder * | , | ||
bool | newxta, | ||
UTAP::xta_part_t | part, | ||
const std::string & | xpath | ||
) |
Parse a buffer in the XTA format, reporting the system to the given implementation of the the ParserBuilder interface and reporting errors to the ErrorHandler.
If newxta is true, then the 4.x syntax is used; otherwise the 3.x syntax is used. On success, this function returns with a positive value.
Definition at line 8946 of file parser.cc.
References parseXTA(), and YY_CURRENT_BUFFER.
int32_t parseXTA | ( | const char * | str, |
ParserBuilder * | builder, | ||
bool | newxta | ||
) |
Definition at line 8955 of file parser.cc.
References parseXTA(), and UTAP::S_XTA.
int32_t parseXTA | ( | FILE * | , |
UTAP::ParserBuilder * | , | ||
bool | newxta | ||
) |
Parse a file in the XTA format, reporting the system to the given implementation of the the ParserBuilder interface and reporting errors to the ErrorHandler.
If newxta is true, then the 4.x syntax is used; otherwise the 3.x syntax is used. On success, this function returns with a positive value.
Definition at line 8960 of file parser.cc.
References parseXTA(), UTAP::S_XTA, YY_BUF_SIZE, and YY_CURRENT_BUFFER.
Referenced by UTAP::ParserBuilder::~ParserBuilder().
|
static |
Definition at line 8835 of file parser.cc.
References UTAP::S_ASSIGN, UTAP::S_CONDITION, UTAP::S_DECLARATION, UTAP::S_EXPONENTIALRATE, UTAP::S_EXPRESSION, UTAP::S_EXPRESSION_LIST, UTAP::S_GUARD, UTAP::S_INST, UTAP::S_INSTANCELINE, UTAP::S_INVARIANT, UTAP::S_LOCAL_DECL, UTAP::S_MESSAGE, UTAP::S_PARAMETERS, UTAP::S_PROBABILITY, UTAP::S_PROPERTY, UTAP::S_SELECT, UTAP::S_SYNC, UTAP::S_SYSTEM, UTAP::S_UPDATE, UTAP::S_XTA, UTAP::S_XTA_PROCESS, syntax_token, T_CONDITION, T_EXPONENTIALRATE, T_EXPRESSION, T_EXPRESSION_LIST, T_INSTANCELINE, T_MESSAGE, T_NEW, T_NEW_ASSIGN, T_NEW_DECLARATION, T_NEW_GUARD, T_NEW_INST, T_NEW_INVARIANT, T_NEW_LOCAL_DECL, T_NEW_PARAMETERS, T_NEW_SELECT, T_NEW_SYNC, T_NEW_SYSTEM, T_OLD, T_OLD_ASSIGN, T_OLD_DECLARATION, T_OLD_GUARD, T_OLD_INST, T_OLD_INVARIANT, T_OLD_LOCAL_DECL, T_OLD_PARAMETERS, T_PROBABILITY, T_PROPERTY, T_UPDATE, and T_XTA_PROCESS.
Referenced by parseProperty(), and parseXTA().
|
static |
Definition at line 8829 of file parser.cc.
References UTAP::ParserBuilder::handleError(), and UTAP::ParserBuilder::setPosition().
Referenced by if().
|
static |
Definition at line 113 of file parser.cc.
References lexer_flex(), and syntax_token.
const char* utap_msg | ( | const char * | msg | ) |
int utap_parse | ( | void | ) |
|
static |
Definition at line 4827 of file parser.cc.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YYUSE.
Referenced by yyparse().
int yyparse | ( | void | ) |
Definition at line 4863 of file parser.cc.
References UTAP::Constants::A_UNTIL, UTAP::Constants::A_WEAKUNTIL, UTAP::Constants::ABS_F, UTAP::Constants::ACOS_F, UTAP::Constants::ACOSH_F, UTAP::Constants::AF, UTAP::Constants::AG, UTAP::Constants::AG_R_Piotr, UTAP::Constants::AND, UTAP::Constants::ASIN_F, UTAP::Constants::ASINH_F, UTAP::Constants::ASSAND, UTAP::Constants::ASSDIV, UTAP::Constants::ASSIGN, UTAP::Constants::ASSLSHIFT, UTAP::Constants::ASSMINUS, UTAP::Constants::ASSMOD, UTAP::Constants::ASSMULT, UTAP::Constants::ASSOR, UTAP::Constants::ASSPLUS, UTAP::Constants::ASSRSHIFT, UTAP::Constants::ASSXOR, UTAP::Constants::ATAN2_F, UTAP::Constants::ATAN_F, UTAP::Constants::ATANH_F, UTAP::Constants::BIT_AND, UTAP::Constants::BIT_LSHIFT, UTAP::Constants::BIT_OR, UTAP::Constants::BIT_RSHIFT, UTAP::Constants::BIT_XOR, UTAP::Constants::BOX, CALL, UTAP::Constants::CBRT_F, UTAP::Constants::CEIL_F, UTAP::Constants::CONSISTENCY, UTAP::Constants::CONTROL, UTAP::Constants::CONTROL_TOPT, UTAP::Constants::CONTROL_TOPT_DEF1, UTAP::Constants::CONTROL_TOPT_DEF2, UTAP::Constants::COPYSIGN_F, UTAP::Constants::COS_F, UTAP::Constants::COSH_F, UTAP::Constants::DIAMOND, UTAP::Constants::DIV, UTAP::Constants::EF, UTAP::Constants::EF_CONTROL, UTAP::Constants::EF_R_Piotr, UTAP::Constants::EG, UTAP::Constants::EQ, UTAP::Constants::ERF_F, UTAP::Constants::ERFC_F, UTAP::Constants::EXP2_F, UTAP::Constants::EXP_F, UTAP::Constants::EXPM1_F, UTAP::Constants::FABS_F, UTAP::Constants::FDIM_F, UTAP::Constants::FINT_F, UTAP::Constants::FLOOR_F, UTAP::Constants::FMA_F, UTAP::Constants::FMAX_F, UTAP::Constants::FMIN_F, UTAP::Constants::FMOD_F, UTAP::Constants::FPCLASSIFY_F, UTAP::Constants::FRACTION, UTAP::Constants::GE, UTAP::Constants::GT, UTAP::Constants::HYPOT_F, UTAP::Constants::ILOGB_F, UTAP::Constants::IMPLEMENTATION, UTAP::Constants::INF_VAR, UTAP::Constants::ISFINITE_F, UTAP::Constants::ISINF_F, UTAP::Constants::ISNAN_F, UTAP::Constants::ISNORMAL_F, UTAP::Constants::ISUNORDERED_F, UTAP::Constants::LDEXP_F, UTAP::Constants::LE, UTAP::Constants::LEADSTO, UTAP::Constants::LGAMMA_F, UTAP::Constants::LIST, UTAP::Constants::LN_F, UTAP::Constants::LOG10_F, UTAP::Constants::LOG1P_F, UTAP::Constants::LOG2_F, UTAP::Constants::LOG_F, UTAP::Constants::LOGB_F, UTAP::Constants::LT, UTAP::Constants::MAX, MAXLEN, UTAP::Constants::MIN, UTAP::Constants::MINUS, UTAP::Constants::MOD, UTAP::Constants::MULT, UTAP::Constants::NEQ, UTAP::Constants::NEXTAFTER_F, UTAP::Constants::NOT, UTAP::Constants::OR, UTAP::Constants::PLUS, UTAP::Constants::PMAX, UTAP::Constants::PO_CONTROL, UTAP::Constants::POW_F, UTAP::Constants::RANDOM_ARCSINE_F, UTAP::Constants::RANDOM_BETA_F, UTAP::Constants::RANDOM_F, UTAP::Constants::RANDOM_GAMMA_F, UTAP::Constants::RANDOM_NORMAL_F, UTAP::Constants::RANDOM_POISSON_F, UTAP::Constants::RANDOM_TRI_F, UTAP::Constants::RANDOM_WEIBULL_F, UTAP::Constants::RATE, UTAP::Constants::REFINEMENT_GE, UTAP::Constants::REFINEMENT_LE, UTAP::Constants::RESTRICT, rootTransId, UTAP::Constants::ROUND_F, UTAP::Constants::SIGNBIT_F, UTAP::Constants::SIMULATION_GE, UTAP::Constants::SIMULATION_LE, UTAP::Constants::SIN_F, UTAP::Constants::SINH_F, UTAP::Constants::SPECIFICATION, UTAP::Constants::SQRT_F, UTAP::Constants::SUP_VAR, UTAP::Constants::SYNC_BANG, UTAP::Constants::SYNC_CSP, UTAP::Constants::SYNC_QUE, UTAP::Constants::SYNTAX_COMPOSITION, UTAP::Constants::TAN_F, UTAP::Constants::TANH_F, UTAP::Constants::TGAMMA_F, UTAP::Constants::TIOCOMPOSITION, UTAP::Constants::TIOCONJUNCTION, UTAP::Constants::TIOQUOTIENT, UTAP::Constants::TRUNC_F, types, UTAP::Constants::XOR, YY_, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yyalloc(), yychar, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror, YYERROR, YYFINAL, YYINITDEPTH, YYLAST, yylex, yylloc, YYLLOC_DEFAULT, YYLTYPE, yylval, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, yyr1, yyr2, YYSIZE_T, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystos, YYSYNTAX_ERROR, yytable, yytable_value_is_error, YYTERROR, and YYTRANSLATE.
|
static |
Definition at line 4620 of file parser.cc.
References YYSIZE_T.
Referenced by yytnamerr().
|
static |
Definition at line 4603 of file parser.cc.
References YYSIZE_T.
Referenced by yysyntax_error(), and yytnamerr().
|
static |
Definition at line 4693 of file parser.cc.
References YY_, YY_NULLPTR, YYCASE_, yycheck, YYEMPTY, YYLAST, YYNTOKENS, yypact, yypact_value_is_default, YYSIZE_T, YYSTACK_ALLOC_MAXIMUM, yystrlen(), yytable, yytable_value_is_error, YYTERROR, yytname, and yytnamerr().
|
static |
Definition at line 4642 of file parser.cc.
References append(), YYSIZE_T, yystpcpy(), and yystrlen().
Referenced by yysyntax_error().
|
static |
Definition at line 105 of file parser.cc.
Referenced by if(), UTAP::SignalFlow::printChansOnEdgesForDot(), and UTAP::Partitioner::printForDot().
|
static |
Definition at line 106 of file parser.cc.
Referenced by if(), parseProperty(), parseXTA(), and UTAP::symbol().
|
static |
Definition at line 107 of file parser.cc.
Referenced by setStartToken(), and utap_lex().
|
static |
Definition at line 127 of file parser.cc.
Referenced by UTAP::StatementBuilder::declFuncBegin(), UTAP::StatementBuilder::declInitialiserList(), UTAP::PrettyPrinter::declTypeDef(), UTAP::PrettyPrinter::isType(), and yyparse().
YYLTYPE utap_lloc |
|
static |
Definition at line 2824 of file parser.cc.
Referenced by yyparse(), and yysyntax_error().
|
static |
|
static |
Definition at line 1544 of file parser.cc.
Referenced by yyparse().
|
static |
Definition at line 1251 of file parser.cc.
Referenced by yyparse(), and yysyntax_error().
|
static |
Definition at line 1517 of file parser.cc.
Referenced by yyparse().
|
static |
|
static |
|
static |
|
static |
Definition at line 1573 of file parser.cc.
Referenced by yyparse(), and yysyntax_error().
|
static |
Definition at line 1114 of file parser.cc.
Referenced by yysyntax_error().
|
static |