1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-04 23:43:43 +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;
T:<comp> {
R: { R:#R TOL:%R };
C: { C:#F TOL:%C };
L: { L:#H TOL:%L };
T=<comp> {
R: { R=#R TOL=%R };
C: { C=#F TOL=%C };
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) {
fprintf(file, " {");
for (field = act->fields; field; field = field->next) {
fprintf(file, " %s:", field->name);
fprintf(file, " %s=", field->name);
dump_field_decl(file, field);
}
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 condition *cond;
fprintf(file, "%*s%s:", level*INDENT, "", field->name);
fprintf(file, "%*s%s=", level*INDENT, "", field->name);
dump_field_decl(file, field);
fprintf(file, " {\n");

View File

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