Skip to content

Commit

Permalink
Undo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akashlevy committed Nov 1, 2024
1 parent feeda6e commit 13d4e3a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 73 deletions.
17 changes: 1 addition & 16 deletions liberty/LibertyParse.yy
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int LibertyLex_lex();
%token <string> STRING KEYWORD

%type <stmt> statement complex_attr simple_attr variable group file
%type <attr_values> attr_values colon_expr
%type <attr_values> attr_values
%type <attr_value> attr_value
%type <string> string expr expr_term expr_term1 volt_expr
%type <line> line
Expand Down Expand Up @@ -86,10 +86,6 @@ group:
{ sta::libertyGroupBegin($1, $3, $5); }
statements '}' semi_opt
{ $$ = sta::libertyGroupEnd(); }
| KEYWORD '(' colon_expr ')' line '{'
{ sta::libertyGroupBegin($1, $3, $5); }
statements '}' semi_opt
{ $$ = sta::libertyGroupEnd(); }
;

line: /* empty */
Expand Down Expand Up @@ -119,9 +115,6 @@ complex_attr:
| KEYWORD '(' attr_values ')' line semi_opt
{ $$ = sta::makeLibertyComplexAttr($1, $3, $5); }
;
| KEYWORD '(' colon_expr ')' line semi_opt
{ $$ = sta::makeLibertyComplexAttr($1, $3, $5); }
;

attr_values:
attr_value
Expand Down Expand Up @@ -157,14 +150,6 @@ attr_value:
{ $$ = sta::makeLibertyStringAttrValue($1); }
| volt_expr
{ $$ = sta::makeLibertyStringAttrValue($1); }

/* Colon expressions are normal exprs with a ':' separator. */
colon_expr:
expr ':' expr
{ char *expr_str = sta::stringPrint("%s:%s", $1, $3);
$$ = new sta::LibertyAttrValueSeq;
$$->push_back(sta::makeLibertyStringAttrValue(expr_str));
}
;

/* Voltage expressions are ignored. */
Expand Down
52 changes: 0 additions & 52 deletions test/ccs_input_ccb_colon.lib

This file was deleted.

1 change: 0 additions & 1 deletion test/ccs_input_ccb_colon.ok

This file was deleted.

3 changes: 0 additions & 3 deletions test/ccs_input_ccb_colon.tcl

This file was deleted.

1 change: 0 additions & 1 deletion test/regression_vars.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ record_sta_tests {
get_noargs
get_objrefs
report_checks_src_attr
ccs_input_ccb_colon
}

define_test_group fast [group_tests all]

0 comments on commit 13d4e3a

Please sign in to comment.