OpenSTA/sdf/SdfLex.ll

209 lines
5.1 KiB
LLVM
Raw Normal View History

2018-09-28 17:54:21 +02:00
%{
// OpenSTA, Static Timing Analyzer
// Copyright (c) 2025, Parallax Software, Inc.
2018-09-28 17:54:21 +02:00
//
// 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
2018-09-28 17:54:21 +02:00
// 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.
2018-09-28 17:54:21 +02:00
2020-11-11 16:32:25 +01:00
#include "util/FlexDisableRegister.hh"
#include "sdf/SdfReaderPvt.hh"
2018-09-28 17:54:21 +02:00
#include "SdfParse.hh"
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
#include "sdf/SdfScanner.hh"
2018-09-28 17:54:21 +02:00
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
#undef YY_DECL
#define YY_DECL \
int \
sta::SdfScanner::lex(sta::SdfParse::semantic_type *const yylval, \
sta::SdfParse::location_type *loc)
2018-09-28 17:54:21 +02:00
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
// update location on matching
#define YY_USER_ACTION loc->step(); loc->columns(yyleng);
2018-09-28 17:54:21 +02:00
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
typedef sta::SdfParse::token token;
2018-09-28 17:54:21 +02:00
%}
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
%option c++
%option yyclass="sta::SdfScanner"
%option prefix="Sdf"
2018-09-28 17:54:21 +02:00
%option noyywrap
%option never-interactive
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
%option stack
%option yylineno
/* %option debug */
2018-09-28 17:54:21 +02:00
%x COMMENT
%x QUOTE
%x COND_EXPR
ID ([A-Za-z_]|\\.)([A-Za-z0-9_\[\]]|\\.)*
HCHAR "."|"/"
BLANK [ \n\t\r\b]
EOL \r?\n
%%
"/*" { BEGIN COMMENT; }
<COMMENT>{
"*/" { BEGIN INITIAL; }
.
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
{EOL} { loc->lines(); loc->step(); }
2018-09-28 17:54:21 +02:00
<<EOF>> {
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
error("unterminated comment");
2018-09-28 17:54:21 +02:00
BEGIN(INITIAL);
yyterminate();
}
}
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
"\"" { BEGIN QUOTE; token_.clear(); }
2018-09-28 17:54:21 +02:00
<QUOTE>{
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
"\\". { token_ += yytext[1]; }
2018-09-28 17:54:21 +02:00
"\"" {
BEGIN INITIAL;
yylval->string = new std::string(token_);
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
return token::QSTRING;
2018-09-28 17:54:21 +02:00
}
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
. { token_ += yytext[0]; }
2018-09-28 17:54:21 +02:00
<<EOF>> {
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
error("unterminated quoted string");
2018-09-28 17:54:21 +02:00
BEGIN(INITIAL);
yyterminate();
}
}
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
"//"[^\n]*{EOL} { loc->lines(); loc->step(); }
2018-09-28 17:54:21 +02:00
("-"|"+")?([0-9]*)("."[0-9]+)([eE]("-"|"+")?[0-9]+)? {
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
yylval->number = atof(yytext);
return token::FNUMBER;
2018-09-28 17:54:21 +02:00
}
"+"?[0-9]+ {
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
yylval->integer = atoi(yytext);
return token::DNUMBER;
}
2018-09-28 17:54:21 +02:00
":"|"{"|"}"|"["|"]"|","|"*"|";"|"="|"-"|"+"|"|"|"("|")"|{HCHAR} {
return ((int) yytext[0]);
}
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
ABSOLUTE { return token::ABSOLUTE; }
CELL { return token::CELL; }
CELLTYPE { return token::CELLTYPE; }
DATE { return token::DATE; }
DELAY { return token::DELAY; }
DELAYFILE { return token::DELAYFILE; }
DESIGN { return token::DESIGN; }
DEVICE { return token::DEVICE; }
DIVIDER { return token::DIVIDER; }
HOLD { return token::HOLD; }
INCREMENTAL|INCREMENT { return token::INCREMENTAL; }
INSTANCE { return token::INSTANCE; }
INTERCONNECT { return token::INTERCONNECT; }
IOPATH { return token::IOPATH; }
NOCHANGE { return token::NOCHANGE; }
PERIOD { return token::PERIOD; }
PORT { return token::PORT; }
PROCESS { return token::PROCESS; }
PROGRAM { return token::PROGRAM; }
RECOVERY { return token::RECOVERY; }
RECREM { return token::RECREM; }
REMOVAL { return token::REMOVAL; }
RETAIN { return token::RETAIN; }
SDFVERSION { return token::SDFVERSION; }
SETUP { return token::SETUP; }
SETUPHOLD { return token::SETUPHOLD; }
SKEW { return token::SKEW; }
TEMPERATURE { return token::TEMPERATURE; }
TIMESCALE { return token::TIMESCALE; }
TIMINGCHECK { return token::TIMINGCHECK; }
VENDOR { return token::VENDOR; }
VERSION { return token::PVERSION; }
VOLTAGE { return token::VOLTAGE; }
WIDTH { return token::WIDTH; }
negedge { return token::NEGEDGE; }
posedge { return token::POSEDGE; }
CONDELSE { return token::CONDELSE; }
2018-09-28 17:54:21 +02:00
COND {
BEGIN COND_EXPR;
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
token_.clear();
return token::COND;
2018-09-28 17:54:21 +02:00
}
<COND_EXPR>"("{BLANK}*IOPATH {
BEGIN INITIAL;
yylval->string = new std::string(token_);
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
return token::EXPR_OPEN_IOPATH;
2018-09-28 17:54:21 +02:00
}
<COND_EXPR>"(" {
/* Timing check conditions don't allow parens,
* so use the paren as a marker for the end of the expr.
*/
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
if (reader_->inTimingCheck()) {
2018-09-28 17:54:21 +02:00
BEGIN INITIAL;
yylval->string = new std::string(token_);
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
return token::EXPR_OPEN;
2018-09-28 17:54:21 +02:00
}
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
else
token_ += yytext[0];
}
2018-09-28 17:54:21 +02:00
<COND_EXPR>{BLANK}+{ID}{BLANK}*")" {
/* (COND expr port) */
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
if (reader_->inTimingCheck()) {
2018-09-28 17:54:21 +02:00
BEGIN INITIAL;
/* remove trailing ")" */
std::string cond_id(token_);
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
cond_id += yytext;
yylval->string = new std::string(cond_id.substr(0, cond_id.size() - 1));
2018-09-28 17:54:21 +02:00
/* No way to pass expr and id separately, so pass them together. */
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
return token::EXPR_ID_CLOSE;
2018-09-28 17:54:21 +02:00
}
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
else
token_ += yytext[0];
}
2018-09-28 17:54:21 +02:00
<COND_EXPR>{BLANK} {}
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
<COND_EXPR>. { token_ += yytext[0]; }
2018-09-28 17:54:21 +02:00
{ID} {
yylval->string = new std::string(yytext);
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
return token::ID;
2018-09-28 17:54:21 +02:00
}
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
{EOL} { loc->lines(); loc->step(); }
2018-09-28 17:54:21 +02:00
{BLANK} { /* Ignore blanks. */ }
/* Send out of bound characters to parser. */
. { return ((int) yytext[0]); }
%%