OpenSTA/sdf/SdfScanner.hh

67 lines
1.8 KiB
C++
Raw Normal View History

c++ sdf reader commit da9f267cbb3ed711bff3d2e2c1470fa12f7de26c Author: James Cherry <cherry@parallaxsw.com> Date: Sat Jan 25 11:31:41 2025 -0700 zlib optional Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dfbe36202ef77f77e1a7c42163db9f6a5d9a8380 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 24 19:24:05 2025 -0700 sdf use option for prefix Signed-off-by: James Cherry <cherry@parallaxsw.com> commit bd7fc399ddfa472e25606c92421c123a725181da Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 24 18:57:46 2025 -0700 mv sdf error to reader Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 088d43b0e5c90b0bc24c64384164f1bcc50c5165 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 24 18:48:28 2025 -0700 sdf lex use option for previs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 6ccf8c33bd8c44fdd914d9a36fa703a7594353e2 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 24 17:10:07 2025 -0700 sdf error Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 43794955a9f79a2900bb8e4cef030a907347627a Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 24 16:13:00 2025 -0700 SdfParse reorg sections Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 666062124f5718a512092fcdd295827cfb2b6c51 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 24 16:07:51 2025 -0700 sdf lex previs Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 83e9925e09817f39d60ae0292fd9eed5e6c40f43 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 24 16:05:11 2025 -0700 sdf clenup directives Signed-off-by: James Cherry <cherry@parallaxsw.com> commit dd71619af605abdaaaa9feb0800eb78e225828d6 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 24 11:41:47 2025 -0700 sdf parse valgrind pass Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c068e6512824ac27a99fdaa6dcd9a908ee991857 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 24 08:45:39 2025 -0700 sdf parse Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 454602fbd464387442cd1e296f3f0e3b5c366e52 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 23 21:50:24 2025 -0700 sdf parse passes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit a352451c163f95f82446f2a25d39706f68ae98d6 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 23 19:15:09 2025 -0700 sdf parse pass all but 1 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 87d537582134a767a13ec4596957b7d7a8e1edfd Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 23 12:53:15 2025 -0700 sdf parse report_checks4 Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c2ee81a51d4fba1281bf452055c9113af7a0de1f Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 23 12:30:25 2025 -0700 sdf link Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d71e4b0c8f95256ab3ec9e53e26218baaa3c9f8c Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 23 12:02:45 2025 -0700 sdf parse compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 6ca6800d5cd52640e275bf7eb77a8b1db85e2957 Author: James Cherry <cherry@parallaxsw.com> Date: Wed Jan 22 18:19:27 2025 -0700 sdf reader c++ Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-25 19:34:04 +01:00
// OpenSTA, Static Timing Analyzer
// Copyright (c) 2025, Parallax Software, 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 <https://www.gnu.org/licenses/>.
//
// The origin of this software must not be misrepresented; you must not
// claim that you wrote the original software.
//
// Altered source versions must be plainly marked as such, and must not be
// misrepresented as being the original software.
//
// This notice may not be removed or altered from any source distribution.
#pragma once
#ifndef __FLEX_LEXER_H
#undef yyFlexLexer
#define yyFlexLexer SdfFlexLexer
#include <FlexLexer.h>
#endif
#include "location.hh"
#include "SdfParse.hh"
namespace sta {
class Report;
class SdfScanner : public SdfFlexLexer
{
public:
SdfScanner(std::istream *stream,
const char *filename,
SdfReader *reader,
Report *report);
virtual ~SdfScanner() {}
virtual int lex(SdfParse::semantic_type *const yylval,
SdfParse::location_type *yylloc);
// YY_DECL defined in SdfLex.ll
// Method body created by flex in SdfLex.cc
void error(const char *msg);
// Get rid of override virtual function warning.
using FlexLexer::yylex;
private:
string token_;
const char *filename_;
SdfReader *reader_;
Report *report_;
};
} // namespace