From 75479a894b3e2e372d15cd299c03cf9eb7715183 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 25 Apr 2012 18:25:35 -0300 Subject: [PATCH] b2/: syntax change: use = for instead of : for format declarations --- b2/HIERARCHY | 8 ++++---- b2/chr.c | 4 ++-- b2/lang.y | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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()); }