diff --git a/b2/HIERARCHY b/b2/HIERARCHY index c41e209..a81ddb8 100644 --- a/b2/HIERARCHY +++ b/b2/HIERARCHY @@ -1,7 +1,7 @@ = R { - R: { R:#R TOL:%R }; - C: { C:#F TOL:%C }; - L: { L:#H TOL:%L }; +T= { + R: { R=#R TOL=%R }; + C: { C=#F TOL=%C }; + L: { L=#H TOL=%L }; } diff --git a/b2/chr.c b/b2/chr.c index 8e98283..119ec77 100644 --- a/b2/chr.c +++ b/b2/chr.c @@ -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"); diff --git a/b2/lang.y b/b2/lang.y index 1bd4d61..82cbde4 100644 --- a/b2/lang.y +++ b/b2/lang.y @@ -297,7 +297,7 @@ fields: ; field: - WORD ':' format + WORD '=' format { $$ = field_new($1, $3, top_field()); }