New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in VHDL parser (Origin: bugzilla #758495) #5898

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version 1.8.10 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2015-11-22 14:53:13 +0000, Walter Nasahl wrote:

The actual VHDL parser has a problem to parse the following structure (example):

inst_name : entity work.entity_name
port map (  clk => clk,
            rst => rst,
            d => d_in,
            q => q_out);

The problem is that it can not find the entity_name. As a result the hierarchy for the project can not be build.

Solution for this problem:

  1. Add the following function the file vhdlparser.jj:

// entity name is lib_name.entity_name or only entity_name
QCString name_entity() : {QCString s;}
| s = name()
{return s;}

  1. change in vhdlparser.jj the following part
    QCString instantiation_unit() : {QCString s,s1,s2;Token *tok=0;}
    [ tok=<COMPONENT_T> ] s=identifier() {s1="component"; return s; }
    | tok=<ENTITY_T> s2=name() {s=tok->image.c_str()+s2;} [ <LPAREN_T> s1=identifier() <RPAREN_T> {s+="(";s+=s1;s+=")" ;}] { return s;}
    | <CONFIGURATION_T> s=name() {s1="configuration ";return s;}


QCString instantiation_unit() : {QCString s,s1,s2;Token *tok=0;}
[ tok=<COMPONENT_T> ] s=identifier() {s1="component"; return s; }
| tok=<ENTITY_T> s2=name_entity() {s=s2;} [ <LPAREN_T> s1=identifier() <RPAREN_T> {s+="(";s+=s1;s+=")" ;}] { return s;}
| <CONFIGURATION_T> s=name() {s1="configuration ";return s;}


On 2015-11-22 21:05:40 +0000, mk wrote:

Created attachment 316058
vhdl patch

On 2015-12-20 09:39:10 +0000, Dimitri van Heesch wrote:

Thanks, I'll include the patch in the next GIT update.

On 2015-12-30 10:19:04 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.11. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant (preferably in the form of a self-contained example).

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment