3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-25 21:57:01 +00:00

verilog_lexer, verilog_parser: remove comment

This commit is contained in:
Emil J. Tywoniak 2025-07-19 22:56:48 +02:00
parent 6b59d05282
commit e77252ce8d
2 changed files with 0 additions and 11 deletions

View file

@ -59,8 +59,6 @@ USING_YOSYS_NAMESPACE
using namespace AST; using namespace AST;
using namespace VERILOG_FRONTEND; using namespace VERILOG_FRONTEND;
using parser = frontend_verilog_yy::parser; using parser = frontend_verilog_yy::parser;
//#define YYSTYPE FRONTEND_VERILOG_YYSTYPE
//#define YYLTYPE FRONTEND_VERILOG_YYLTYPE
YOSYS_NAMESPACE_BEGIN YOSYS_NAMESPACE_BEGIN
#undef YY_DECL #undef YY_DECL

View file

@ -49,7 +49,6 @@
#include "kernel/yosys_common.h" #include "kernel/yosys_common.h"
#include "frontends/verilog/verilog_error.h" #include "frontends/verilog/verilog_error.h"
#include "frontends/verilog/verilog_location.h" #include "frontends/verilog/verilog_location.h"
// start requires
YOSYS_NAMESPACE_BEGIN YOSYS_NAMESPACE_BEGIN
namespace VERILOG_FRONTEND { namespace VERILOG_FRONTEND {
struct ParseState; struct ParseState;
@ -57,11 +56,9 @@
class VerilogLexer; class VerilogLexer;
}; };
YOSYS_NAMESPACE_END YOSYS_NAMESPACE_END
// end requires
} }
%code provides { %code provides {
// start provides
USING_YOSYS_NAMESPACE; USING_YOSYS_NAMESPACE;
using namespace AST; using namespace AST;
using namespace VERILOG_FRONTEND; using namespace VERILOG_FRONTEND;
@ -70,7 +67,6 @@
namespace VERILOG_FRONTEND { namespace VERILOG_FRONTEND {
typedef std::map<std::string, AST::AstNode*> UserTypeMap; typedef std::map<std::string, AST::AstNode*> UserTypeMap;
struct ParseState { struct ParseState {
// TODO initialization?
int port_counter; int port_counter;
dict<std::string, int> port_stubs; dict<std::string, int> port_stubs;
dict<IdString, std::unique_ptr<AstNode>> *attr_list, default_attr_list; dict<IdString, std::unique_ptr<AstNode>> *attr_list, default_attr_list;
@ -122,11 +118,9 @@
}; };
}; };
YOSYS_NAMESPACE_END YOSYS_NAMESPACE_END
// end provides
} }
%code { %code {
// start unqual
#include <list> #include <list>
#include <stack> #include <stack>
#include <memory> #include <memory>
@ -430,11 +424,9 @@
{ {
err_at_loc(loc, "%s", msg.c_str()); err_at_loc(loc, "%s", msg.c_str());
} }
// end unqual
} }
%code requires { %code requires {
// start requires
#include <map> #include <map>
#include <string> #include <string>
#include <memory> #include <memory>
@ -480,7 +472,6 @@
using ch_t = char; using ch_t = char;
using integer_t = int; using integer_t = int;
using ast_node_type_t = YOSYS_NAMESPACE_PREFIX AST::AstNodeType; using ast_node_type_t = YOSYS_NAMESPACE_PREFIX AST::AstNodeType;
// end requires
} }
%token <string_t> string_t "string" %token <string_t> string_t "string"