diff --git a/src/V3AstNodes.h b/src/V3AstNodes.h index 721ebb047..8ae44fd9b 100644 --- a/src/V3AstNodes.h +++ b/src/V3AstNodes.h @@ -2448,15 +2448,6 @@ public: virtual string verilogKwd() const { return "module"; } }; -class AstProgram : public AstNodeModule { - // A program declaration -public: - AstProgram(FileLine* fl, const string& name) - : ASTGEN_SUPER(fl, name) {} - ASTNODE_NODE_FUNCS(Program) - virtual string verilogKwd() const { return "program"; } -}; - class AstNotFoundModule : public AstNodeModule { // A missing module declaration public: diff --git a/src/verilog.y b/src/verilog.y index f87bcf48e..2e804a72f 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -1465,7 +1465,7 @@ program_declaration: // IEEE: program_declaration + program_nonansi_header + pr pgmFront: yPROGRAM lifetimeE idAny/*new_program*/ - { $$ = new AstProgram($3,*$3); + { $$ = new AstModule($3,*$3); $$->lifetime($2); $$->inLibrary(PARSEP->inLibrary() || $$->fileline()->celldefineOn()); $$->modTrace(GRAMMARP->allTracingOn($$->fileline()));