allow commas inside matching pairs of parentheses in protocol parameters

This commit is contained in:
2020-03-02 09:10:28 +01:00
parent f072c217f3
commit 967539c4e1
4 changed files with 105 additions and 14 deletions

View File

@ -10,7 +10,28 @@ set records {
record(ao, "DZ:test1")
{
field (DTYP, "stream")
field (OUT, "@test.proto test1(ARG(10)) device")
field (OUT, "@test.proto test1(ARG(10),20,30) device")
}
record(ao, "DZ:test2")
{
field (DTYP, "stream")
field (OUT, "@test.proto test1 (ARG(10,20), 30) device")
}
record(ao, "DZ:test3")
{
field (DTYP, "stream")
field (OUT, "@test.proto test1 ( ARG ( 10 , 20 ) , 30 ) device")
}
record(ao, "DZ:test4")
{
field (DTYP, "stream")
field (OUT, "@test.proto test1( ARG \\( 10 , 20 , 30 ) device")
}
record(ao, "DZ:test5")
{
field (DTYP, "stream")
field (OUT, "@test.proto test1(\\ ARG\\,\\\\(10,20)\\,30) device")
}
}
@ -28,5 +49,13 @@ startioc
put DZ:test1 "1"
assure "VAL:ARG(10):1\n"
put DZ:test2 "1"
assure "VAL:ARG(10,20):1\n"
put DZ:test3 "1"
assure "VAL:ARG ( 10 , 20 ):1\n"
put DZ:test4 "1"
assure "VAL: ARG ( 10 :1\n"
put DZ:test5 "1"
assure "VAL: ARG,\\(10,20),30:1\n"
finish
#finish