Skip to content
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

Update ADMS parser to handle Accellera standard disciplines header file #103

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions admsXml/verilogaLex.l
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ INF {TKRETURN(yytext,yyleng); return tk_inf;}
\|\| {TKRETURN(yytext,yyleng); return tk_or;}
\^\~ {TKRETURN(yytext,yyleng); return tk_bitwise_equr;}

\\{ident}" " {TKSTRIPPEDRETURN(yytext,yyleng); return tk_ident;}
\${ident} {TKRETURN(yytext,yyleng); return tk_dollar_ident;}
{char} {TKSTRIPPEDRETURN(yytext,yyleng); return tk_char;}
{b8_int} {TKRETURN(yytext,yyleng); return tk_integer;}
Expand Down
8 changes: 6 additions & 2 deletions admsXml/verilogaYacc.y.in
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,12 @@ R_s.admsParse
| R_discipline_member
| R_nature_member
;
R_optional_semicolon
|
| ';'
;
R_discipline_member
| tk_discipline R_discipline_name R_l.discipline_assignment tk_enddiscipline
| tk_discipline R_discipline_name R_optional_semicolon R_l.discipline_assignment tk_enddiscipline
_ adms_admsmain_list_discipline_prepend_once_or_abort(root(),gDiscipline);
_ gDiscipline=NULL;
;
Expand Down Expand Up @@ -174,7 +178,7 @@ R_discipline.naturename
;

R_nature_member
| tk_nature tk_ident R_l.nature_assignment tk_endnature
| tk_nature tk_ident R_optional_semicolon R_l.nature_assignment tk_endnature
_ p_nature mynature=NULL;
_ if(gNatureAccess)
_ mynature=adms_admsmain_list_nature_prepend_by_id_once_or_abort(root(),gNatureAccess);
Expand Down