1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-05 04:34:04 +02:00

b2/: syntax change: use = for instead of : for format declarations

This commit is contained in:
Werner Almesberger 2012-04-25 18:25:35 -03:00
parent 6bb8b03ef8
commit 75479a894b
3 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<comp> = R<C<L; <comp> = R<C<L;
T:<comp> { T=<comp> {
R: { R:#R TOL:%R }; R: { R=#R TOL=%R };
C: { C:#F TOL:%C }; C: { C=#F TOL=%C };
L: { L:#H TOL:%L }; L: { L=#H TOL=%L };
} }

View File

@ -130,7 +130,7 @@ static void dump_action(FILE *file, const struct action *act, int level)
if (act->fields) { if (act->fields) {
fprintf(file, " {"); fprintf(file, " {");
for (field = act->fields; field; field = field->next) { for (field = act->fields; field; field = field->next) {
fprintf(file, " %s:", field->name); fprintf(file, " %s=", field->name);
dump_field_decl(file, field); dump_field_decl(file, field);
} }
fprintf(file, " }\n"); fprintf(file, " }\n");
@ -146,7 +146,7 @@ static void dump_one_field(FILE *file, const struct field *field, int level)
const struct selector *sel; const struct selector *sel;
const struct condition *cond; const struct condition *cond;
fprintf(file, "%*s%s:", level*INDENT, "", field->name); fprintf(file, "%*s%s=", level*INDENT, "", field->name);
dump_field_decl(file, field); dump_field_decl(file, field);
fprintf(file, " {\n"); fprintf(file, " {\n");

View File

@ -297,7 +297,7 @@ fields:
; ;
field: field:
WORD ':' format WORD '=' format
{ {
$$ = field_new($1, $3, top_field()); $$ = field_new($1, $3, top_field());
} }