Sync with 5.4.2
[deliverable/titan.core.git] / compiler2 / ttcn3 / coding_attrib_p.y
index a5eb4f5fe350a4af3c602de8a0b0d33f06cae435..0c04ab50cf99211fe5564d9b156ff0b1fe05acfd 100644 (file)
@@ -108,6 +108,7 @@ static void yyerror(const char *str);
 %token <str> ErrorBehaviorString
 %token <id> IDentifier "Identifier"
 %token <number> Number
+%token <str> 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:
This page took 0.024448 seconds and 5 git commands to generate.