summaryrefslogtreecommitdiff
path: root/tools/d2c/format/grammar.y
diff options
context:
space:
mode:
Diffstat (limited to 'tools/d2c/format/grammar.y')
-rw-r--r--tools/d2c/format/grammar.y7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/d2c/format/grammar.y b/tools/d2c/format/grammar.y
index 062d616..5cae2f8 100644
--- a/tools/d2c/format/grammar.y
+++ b/tools/d2c/format/grammar.y
@@ -38,7 +38,7 @@ YY_DECL;
}
-%token OPS_TYPE
+%token OPS_TYPE OR
%type <string> OPS_TYPE
@@ -47,7 +47,10 @@ YY_DECL;
%%
-type : OPS_TYPE { set_operands_format_type(format, $1); }
+types : type
+ | type OR types
+
+type : OPS_TYPE { add_operands_format_type(format, $1); }
%%