OpenSTA/parasitics/SpefLex.ll

217 lines
5.5 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
#include <string.h>
#include <string>
2020-04-05 20:35:51 +02:00
2020-11-11 16:32:25 +01:00
#include "util/FlexDisableRegister.hh"
2020-04-05 23:53:44 +02:00
#include "StringUtil.hh"
2020-04-05 20:35:51 +02:00
#include "parasitics/SpefReaderPvt.hh"
2018-09-28 17:54:21 +02:00
#include "SpefParse.hh"
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
#include "parasitics/SpefScanner.hh"
2018-09-28 17:54:21 +02:00
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
#undef YY_DECL
#define YY_DECL \
int \
sta::SpefScanner::lex(sta::SpefParse::semantic_type *const yylval, \
sta::SpefParse::location_type *loc)
2018-09-28 17:54:21 +02:00
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
// update location on matching
#define YY_USER_ACTION loc->step(); loc->columns(yyleng);
2018-09-28 17:54:21 +02:00
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
typedef sta::SpefParse::token token;
2018-09-28 17:54:21 +02:00
%}
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
%option c++
%option yyclass="sta::SpefScanner"
%option prefix="Spef"
2018-09-28 17:54:21 +02:00
%option noyywrap
%option never-interactive
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
%option stack
%option yylineno
%option debug
2018-09-28 17:54:21 +02:00
%x COMMENT
%x QUOTE
ALPHA [A-Za-z]
DIGIT [0-9]
BLANK [ \t\r]
POS_SIGN "+"
NEG_SIGN "-"
POS_INTEGER {DIGIT}+
SIGN {POS_SIGN}|{NEG_SIGN}
INTEGER {SIGN}?{DIGIT}+
DECIMAL {SIGN}?{DIGIT}+"."{DIGIT}*
FRACTION {SIGN}?"."{DIGIT}+
RADIX {DECIMAL}|{FRACTION}|{INTEGER}
EXP {RADIX}[eE]{INTEGER}
FLOAT {DECIMAL}|{FRACTION}|{EXP}
HCHAR "."|"/"|"|"|":"
PREFIX_BUS_DELIM "["|"{"|"("|"<"
SUFFIX_BUS_DELIM "]"|"}"|")"|">"
SPECIAL_CHAR "!"|"#"|"$"|"%"|"&"|"`"|"("|")"|"*"|"+"|","|"-"|"."|"/"|":"|";"|"<"|"="|">"|"?"|"@"|"["|"\\"|"]"|"^"|"'"|"{"|"|"|"}"|"~"
ESCAPED_CHAR_SET {SPECIAL_CHAR}|\"
ESCAPED_CHAR \\{ESCAPED_CHAR_SET}
IDENT_ACHAR {ESCAPED_CHAR}|{ALPHA}|"_"
IDENT_CHAR {IDENT_ACHAR}|{DIGIT}
ID {IDENT_ACHAR}{IDENT_CHAR}*
BUS_SUB {DIGIT}|{ALPHA}|"_"
BIT_IDENT {ID}({PREFIX_BUS_DELIM}{BUS_SUB}+{SUFFIX_BUS_DELIM})+
ID_OR_BIT {ID}|{BIT_IDENT}
IDENT {INTEGER}*{ID_OR_BIT}({HCHAR}|{INTEGER}|{ID_OR_BIT})*
IDENT_OR_BIT {ID}|{BIT_IDENT}
PATH {IDENT_OR_BIT}({HCHAR}{IDENT_OR_BIT})*
NAME_PAIR ({PATH}|{INDEX}){HCHAR}({INDEX}|{IDENT_OR_BIT}|{POS_INTEGER})
INDEX "*"{POS_INTEGER}
%%
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
"*BUS_DELIMITER" { return token::BUS_DELIMITER; }
"*C2_R1_C1" { return token::C2_R1_C1; }
"*C" { return token::KW_C; }
"*CAP" { return token::CAP; }
"*CELL" { return token::CELL; }
"*CONN" { return token::CONN; }
"*C_UNIT" { return token::C_UNIT; }
"*SPEF" { return token::SPEF; }
"*DATE" { return token::DATE; }
"*DEFINE" { return token::DEFINE; }
"*DELIMITER" { return token::DELIMITER; }
"*DESIGN" { return token::DESIGN; }
"*DESIGN_FLOW" { return token::DESIGN_FLOW; }
"*DIVIDER" { return token::DIVIDER; }
"*DRIVER" { return token::DRIVER; }
"*D_NET" { return token::D_NET; }
"*D_PNET" { return token::D_PNET; }
"*D" { return token::KW_D; }
"*END" { return token::END; }
"*GROUND_NETS" { return token::GROUND_NETS; }
"*INDUC" { return token::INDUC; }
"*I" { return token::KW_I; }
"*K" { return token::KW_K; }
"*L" { return token::KW_L; }
"*LOADS" { return token::LOADS; }
"*L_UNIT" { return token::L_UNIT; }
"*NAME_MAP" { return token::NAME_MAP; }
"*N" { return token::KW_N; }
"*PDEFINE" { return token::PDEFINE; }
"*PHYSICAL_PORTS" { return token::PHYSICAL_PORTS; }
"*PORTS" { return token::PORTS; }
"*POWER_NETS" { return token::POWER_NETS; }
"*PROGRAM" { return token::PROGRAM; }
"*P" { return token::KW_P; }
"*Q" { return token::KW_Q; }
"*RC" { return token::RC; }
"*RES" { return token::RES; }
"*R_NET" { return token::R_NET; }
"*R_PNET" { return token::R_PNET; }
"*R_UNIT" { return token::R_UNIT; }
"*S" { return token::KW_S; }
"*T_UNIT" { return token::T_UNIT; }
"*VENDOR" { return token::VENDOR; }
"*VERSION" { return token::PVERSION; }
"*V" { return token::KW_V; }
"//".*\n { loc->lines(); loc->step(); } /* Single line comment */
2018-09-28 17:54:21 +02:00
"/*" { BEGIN COMMENT; }
<COMMENT>{
.
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
\n { loc->lines(); loc->step(); }
2018-09-28 17:54:21 +02:00
"*/" { BEGIN INITIAL; }
<<EOF>> {
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
error("unterminated comment");
2018-09-28 17:54:21 +02:00
BEGIN(INITIAL);
yyterminate();
}
}
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
"\"" { BEGIN QUOTE; token_.erase(); }
2018-09-28 17:54:21 +02:00
<QUOTE>{
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
\r?\n { loc->lines(); loc->step(); }
2018-09-28 17:54:21 +02:00
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
"\\". { token_ += yytext[1]; }
2018-09-28 17:54:21 +02:00
"\"" {
BEGIN INITIAL;
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
yylval->string = sta::stringCopy(token_.c_str());
return token::QSTRING;
2018-09-28 17:54:21 +02:00
}
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
. { token_ += yytext[0]; }
2018-09-28 17:54:21 +02:00
<<EOF>> {
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
error("unterminated quoted string");
2018-09-28 17:54:21 +02:00
BEGIN(INITIAL);
yyterminate();
}
}
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
{BLANK}*\n { loc->lines(); loc->step(); }
2018-09-28 17:54:21 +02:00
{INTEGER} {
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
yylval->integer = atoi(yytext);
return token::INTEGER;
2018-09-28 17:54:21 +02:00
}
{FLOAT} {
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
yylval->number = static_cast<float>(atof(yytext));
return token::FLOAT;
2018-09-28 17:54:21 +02:00
}
{IDENT} {
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
yylval->string = reader_->translated(yytext);
return token::IDENT;
2018-09-28 17:54:21 +02:00
}
{PATH}|{NAME_PAIR} {
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
yylval->string = reader_->translated(yytext);
return token::NAME;
2018-09-28 17:54:21 +02:00
}
{INDEX} {
LibExpr/spef/saif c++ parsers commit a686a6f77e555513adc40228471c1ad1af4646b3 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:44 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 986a3a00c246a927c494066c56bb627e55da8692 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 18:45:32 2025 -0800 spef compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e8664d21c0b404a82967201c19a087c6680b7177 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 16:36:19 2025 -0800 saif compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 496569018791bff19e57c534f29ac085520fc520 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 15:25:44 2025 -0800 mv bison error funcs to .yy Signed-off-by: James Cherry <cherry@parallaxsw.com> commit c1e7638840f94eb0baddee47507e607b000ab858 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:26 2025 -0800 parser cledanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 22bc72af46114ddb4fc5876655887ef1189f2195 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 14:19:06 2025 -0800 parser cleanup Signed-off-by: James Cherry <cherry@parallaxsw.com> commit caeedc4c9e2bf8e7a2f4aceb4ee4a5758efd1b36 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:52:55 2025 -0800 LibertyParser stack stream Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e029a01c2fc5ba0ed336978c5853d49095d07d66 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:10:35 2025 -0800 bison 3.2 required Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 2ca9423a2d518f51fdee6c41d41348dbfd548bae Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 12:05:19 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit d64df413675c2978c0f24d5594cc201032233447 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 11:18:05 2025 -0800 LibertyExpr -> LibExpr Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 57cfbae240984bd7928862b1d6c3b1047ee5d71f Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:25:49 2025 -0800 comment Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 5249ac32d809ba30ce09437d61beaf4360bc2cd8 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:24:35 2025 -0800 parseError Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 8c5442007f99c06bfb16a496e00862353c82282c Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:11:46 2025 -0800 libecxpr parseError unused Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 67dacf60db2c0d7e3f7ceeae672b4bdaf1e039b7 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 10:09:39 2025 -0800 reader pvt includes Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 1d7097399b4242833bf5a478c903b5d98afe674b Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:33:37 2025 -0800 libexpr life Signed-off-by: James Cherry <cherry@parallaxsw.com> commit cc85e357463399291cb1e7d7b628e5dd356ac8a9 Author: James Cherry <cherry@parallaxsw.com> Date: Fri Jan 31 09:21:12 2025 -0800 libexpr no location Signed-off-by: James Cherry <cherry@parallaxsw.com> commit e3ef17a746eb4e8822cce732250ae77261d53cf9 Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 22:15:50 2025 -0800 compiles Signed-off-by: James Cherry <cherry@parallaxsw.com> commit 3a34874297a5c82930ee0bd131425bccf48526ce Author: James Cherry <cherry@parallaxsw.com> Date: Thu Jan 30 20:03:06 2025 -0800 libexpr parse Signed-off-by: James Cherry <cherry@parallaxsw.com> Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-02-01 23:49:30 +01:00
yylval->string = sta::stringCopy(yytext);
return token::INDEX;
2018-09-28 17:54:21 +02:00
}
{HCHAR} {
char ch = yytext[0];
return ((int) ch);
}
{BLANK} /* ignore blanks */ ;
/* Send out of bound characters to parser. */
. { return ((int) yytext[0]); }
%%