Commit c499c3fa authored by Arpad Lovassy's avatar Arpad Lovassy
Browse files

Bug 571311 - CFG file macro multiplication


Signed-off-by: Arpad Lovassy's avatarzlovarp <arpad.lovassy@semcon.com>
parent 94cfe6c5
...@@ -1187,7 +1187,9 @@ pr_HostNameIpV6: ...@@ -1187,7 +1187,9 @@ pr_HostNameIpV6:
pr_MacroAssignment: pr_MacroAssignment:
( TTCN3IDENTIFIER ( TTCN3IDENTIFIER
ASSIGNMENTCHAR ASSIGNMENTCHAR
pr_MacroRhs ( pr_MacroRhs
| pr_MacroMultiplication
)
) )
; ;
...@@ -1198,6 +1200,14 @@ pr_MacroRhs: ...@@ -1198,6 +1200,14 @@ pr_MacroRhs:
ENDCHAR ENDCHAR
; ;
pr_MacroMultiplication:
( pr_MacroAssignmentValue
( STAR
pr_MacroAssignmentValue
)+
)
;
pr_StructuredValue: pr_StructuredValue:
( pr_SimpleValue ( pr_SimpleValue
| BEGINCHAR | BEGINCHAR
......
...@@ -654,7 +654,9 @@ pr_HostNameIpV6: ...@@ -654,7 +654,9 @@ pr_HostNameIpV6:
pr_MacroAssignment returns [ String name, ParserRuleContext value ]: pr_MacroAssignment returns [ String name, ParserRuleContext value ]:
( n = TTCN3IDENTIFIER { $name = $n.getText(); } ( n = TTCN3IDENTIFIER { $name = $n.getText(); }
ASSIGNMENTCHAR ASSIGNMENTCHAR
v = pr_MacroRhs { $value = $v.ctx; } ( v = pr_MacroRhs { $value = $v.ctx; }
| mul = pr_MacroMultiplication { $value = $mul.ctx; }
)
) )
; ;
...@@ -665,6 +667,14 @@ pr_MacroRhs: ...@@ -665,6 +667,14 @@ pr_MacroRhs:
ENDCHAR ENDCHAR
; ;
pr_MacroMultiplication:
( pr_MacroAssignmentValue
( STAR
pr_MacroAssignmentValue
)+
)
;
pr_StructuredValue: pr_StructuredValue:
( pr_SimpleValue ( pr_SimpleValue
| BEGINCHAR | BEGINCHAR
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment