mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0027342: STEP - support C++ streams for import / export
- STEP low-level parser is converted to C++; required minimal version of flex is elevated to 2.5.37. - Added possibility to import STEP from stream, see new method XSControl_Reader::ReadStream() (now implemented in STEP only). - Parsers ported to win_flex_bison 2.5.23 (flex 2.6.4, bison 3.7.1) - Added support of C++ flex and bison scanners in in CMake scripts - Some code clean-up in StepFile and around (unused files and functions are eliminated) - Option to read from stream is added in DRAW command testreadstep for testing ReadStream() function - Added test bugs step bug27342
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,19 +1,20 @@
|
||||
/* A Bison parser, made by GNU Bison 2.7. */
|
||||
/* A Bison parser, made by GNU Bison 3.7.1. */
|
||||
|
||||
/* Bison interface for Yacc-like parsers in C
|
||||
|
||||
Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
|
||||
|
||||
|
||||
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
|
||||
Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
@@ -26,13 +27,17 @@
|
||||
special exception, which will cause the skeleton and the resulting
|
||||
Bison output files to be licensed under the GNU General Public
|
||||
License without this special exception.
|
||||
|
||||
|
||||
This special exception was added by the Free Software Foundation in
|
||||
version 2.2 of Bison. */
|
||||
|
||||
#ifndef YY_EXPRINTRP_D_ABV_OCCT_OCCT_SRC_EXPRINTRP_EXPRINTRP_TAB_H_INCLUDED
|
||||
# define YY_EXPRINTRP_D_ABV_OCCT_OCCT_SRC_EXPRINTRP_EXPRINTRP_TAB_H_INCLUDED
|
||||
/* Enabling traces. */
|
||||
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
|
||||
especially those whose name start with YY_ or yy_. They are
|
||||
private implementation details that can be changed or removed. */
|
||||
|
||||
#ifndef YY_EXPRINTRP_EXPRINTRP_EXPRINTRP_TAB_H_INCLUDED
|
||||
# define YY_EXPRINTRP_EXPRINTRP_EXPRINTRP_TAB_H_INCLUDED
|
||||
/* Debug traces. */
|
||||
#ifndef YYDEBUG
|
||||
# define YYDEBUG 0
|
||||
#endif
|
||||
@@ -40,59 +45,51 @@
|
||||
extern int ExprIntrpdebug;
|
||||
#endif
|
||||
|
||||
/* Tokens. */
|
||||
/* Token kinds. */
|
||||
#ifndef YYTOKENTYPE
|
||||
# define YYTOKENTYPE
|
||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
||||
know about them. */
|
||||
enum yytokentype {
|
||||
SUMOP = 258,
|
||||
MINUSOP = 259,
|
||||
DIVIDEOP = 260,
|
||||
EXPOP = 261,
|
||||
MULTOP = 262,
|
||||
PARENTHESIS = 263,
|
||||
BRACKET = 264,
|
||||
ENDPARENTHESIS = 265,
|
||||
ENDBRACKET = 266,
|
||||
VALUE = 267,
|
||||
IDENTIFIER = 268,
|
||||
COMMA = 269,
|
||||
DIFFERENTIAL = 270,
|
||||
DERIVATE = 271,
|
||||
DERIVKEY = 272,
|
||||
ASSIGNOP = 273,
|
||||
DEASSIGNKEY = 274,
|
||||
EQUALOP = 275,
|
||||
RELSEPARATOR = 276,
|
||||
CONSTKEY = 277,
|
||||
SUMKEY = 278,
|
||||
PRODKEY = 279
|
||||
};
|
||||
enum yytokentype
|
||||
{
|
||||
YYEMPTY = -2,
|
||||
YYEOF = 0, /* "end of file" */
|
||||
YYerror = 256, /* error */
|
||||
YYUNDEF = 257, /* "invalid token" */
|
||||
SUMOP = 258, /* SUMOP */
|
||||
MINUSOP = 259, /* MINUSOP */
|
||||
DIVIDEOP = 260, /* DIVIDEOP */
|
||||
EXPOP = 261, /* EXPOP */
|
||||
MULTOP = 262, /* MULTOP */
|
||||
PARENTHESIS = 263, /* PARENTHESIS */
|
||||
BRACKET = 264, /* BRACKET */
|
||||
ENDPARENTHESIS = 265, /* ENDPARENTHESIS */
|
||||
ENDBRACKET = 266, /* ENDBRACKET */
|
||||
VALUE = 267, /* VALUE */
|
||||
IDENTIFIER = 268, /* IDENTIFIER */
|
||||
COMMA = 269, /* COMMA */
|
||||
DIFFERENTIAL = 270, /* DIFFERENTIAL */
|
||||
DERIVATE = 271, /* DERIVATE */
|
||||
DERIVKEY = 272, /* DERIVKEY */
|
||||
ASSIGNOP = 273, /* ASSIGNOP */
|
||||
DEASSIGNKEY = 274, /* DEASSIGNKEY */
|
||||
EQUALOP = 275, /* EQUALOP */
|
||||
RELSEPARATOR = 276, /* RELSEPARATOR */
|
||||
CONSTKEY = 277, /* CONSTKEY */
|
||||
SUMKEY = 278, /* SUMKEY */
|
||||
PRODKEY = 279 /* PRODKEY */
|
||||
};
|
||||
typedef enum yytokentype yytoken_kind_t;
|
||||
#endif
|
||||
|
||||
|
||||
/* Value type. */
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef int YYSTYPE;
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
#endif
|
||||
|
||||
|
||||
extern YYSTYPE ExprIntrplval;
|
||||
|
||||
#ifdef YYPARSE_PARAM
|
||||
#if defined __STDC__ || defined __cplusplus
|
||||
int ExprIntrpparse (void *YYPARSE_PARAM);
|
||||
#else
|
||||
int ExprIntrpparse ();
|
||||
#endif
|
||||
#else /* ! YYPARSE_PARAM */
|
||||
#if defined __STDC__ || defined __cplusplus
|
||||
int ExprIntrpparse (void);
|
||||
#else
|
||||
int ExprIntrpparse ();
|
||||
#endif
|
||||
#endif /* ! YYPARSE_PARAM */
|
||||
|
||||
#endif /* !YY_EXPRINTRP_D_ABV_OCCT_OCCT_SRC_EXPRINTRP_EXPRINTRP_TAB_H_INCLUDED */
|
||||
#endif /* !YY_EXPRINTRP_EXPRINTRP_EXPRINTRP_TAB_H_INCLUDED */
|
||||
|
@@ -1,4 +1,3 @@
|
||||
/*
|
||||
/* Copyright (c) 1997-1999 Matra Datavision
|
||||
Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user