X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=compiler2%2Fttcn3%2Fcoding_attrib_p.y;h=0c04ab50cf99211fe5564d9b156ff0b1fe05acfd;hb=3f84031e48520efb2cbc931692210e5de7fa5919;hp=a5eb4f5fe350a4af3c602de8a0b0d33f06cae435;hpb=51fa56b97ff178aa82497de54a5945698517e55d;p=deliverable%2Ftitan.core.git diff --git a/compiler2/ttcn3/coding_attrib_p.y b/compiler2/ttcn3/coding_attrib_p.y index a5eb4f5..0c04ab5 100644 --- a/compiler2/ttcn3/coding_attrib_p.y +++ b/compiler2/ttcn3/coding_attrib_p.y @@ -108,6 +108,7 @@ static void yyerror(const char *str); %token ErrorBehaviorString %token IDentifier "Identifier" %token Number +%token CustomEncoding /********************************************************************* * Tokens without semantic value @@ -223,6 +224,7 @@ VersionAttribute RequiresAttribute PrintingAttribute PrintingType +CustomEncoding %destructor { delete $$.encoding_options; } DecodeAttribute @@ -543,6 +545,11 @@ EncDecAttributeBody: $$.encoding_type = $2; $$.encoding_options = $4; } +| '(' CustomEncoding ')' + { + $$.encoding_type = Type::CT_CUSTOM; + $$.encoding_options = $2; + } ; EncodingOptions: