ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0005912 | Part 01: TTCN-3 Core Language | Clarification | public | 30-06-2011 09:54 | 01-07-2011 18:02

Reporter | Wolfgang Seka |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | major | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.3.2 (interim 2011) | Fixed in Version | v4.3.2 (interim 2011) |
Clause Reference(s) | ES 201 873-1 clause C.33
Source (company - Author) | stf160 - Wolfgang

Summary | 0005912: Clarification for Regular Expression

Description

In the TTCN-3 Core language there is the parameter groupno of regexp which is defined as
"Group numbers are assigned by the order of occurrences of the opening bracket of a group and counted starting from 0 by step 1."
As a result the the whole expression as such cannot be addressed (this is illustrated in the 1st example too, where the 1st subgroup is addressed with groupno 0).
This addressing is a bit confusing since e.g. for the posix C definition the index starts with 1 and 0 means that no subgrouping is applied i.e. index 0 addresses the whole expression.
There are the following issues to be clarified:
- clarification that TTCN regexp differs from POSIX implementation of regexp (to make clear that there is a difference)
- example and clarification how to address the whole expression or what happens when an expression has no subgroup (currently that seems even not possible since index 0 would refer to a non-existing subgroup)
- As alternative the index could made optional (e.g. in "template (omit) integer groupno := omit") with omit for the top-level expression

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | CR5912_resolution_v1.doc (37,376) 01-07-2011 11:25 http://oldforge.etsi.org/mantis/file_download.php?file_id=2545&type=bug CR5912_resolution_v2.doc (55,808) 01-07-2011 15:42 http://oldforge.etsi.org/mantis/file_download.php?file_id=2550&type=bug CR5912_resolution_v3.doc (55,808) 01-07-2011 16:51 http://oldforge.etsi.org/mantis/file_download.php?file_id=2555&type=bug

Issue History
Date Modified | Username | Field | Change
30-06-2011 09:54 | Wolfgang Seka | New Issue |
30-06-2011 09:54 | Wolfgang Seka | Clause Reference(s) | => ES 201 873-1 clause C.33
30-06-2011 09:54 | Wolfgang Seka | Source (company - Author) | => stf160 - Wolfgang
30-06-2011 14:20 | Gyorgy Rethy | Note Added: 0010157 |
30-06-2011 14:21 | Gyorgy Rethy | Status | new => assigned
30-06-2011 14:21 | Gyorgy Rethy | Assigned To | => Jacob Wieland - Spirent
30-06-2011 14:21 | Gyorgy Rethy | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
30-06-2011 14:21 | Gyorgy Rethy | Target Version | => Edition 4.3.2 (interim)
30-06-2011 14:22 | Gyorgy Rethy | Note Edited: 0010157 |
01-07-2011 11:25 | Jacob Wieland - Spirent | File Added: CR5912_resolution_v1.doc |
01-07-2011 11:26 | Jacob Wieland - Spirent | Note Added: 0010174 |
01-07-2011 11:27 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Gyorgy Rethy
01-07-2011 15:41 | Gyorgy Rethy | Note Added: 0010183 |
01-07-2011 15:41 | Gyorgy Rethy | Note Added: 0010184 |
01-07-2011 15:41 | Gyorgy Rethy | Note Added: 0010185 |
01-07-2011 15:42 | Gyorgy Rethy | File Added: CR5912_resolution_v2.doc |
01-07-2011 15:42 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Jacob Wieland - Spirent
01-07-2011 16:12 | Jacob Wieland - Spirent | Note Added: 0010187 |
01-07-2011 16:15 | Jacob Wieland - Spirent | Assigned To | Jacob Wieland - Spirent => Gyorgy Rethy
01-07-2011 16:50 | Gyorgy Rethy | Note Added: 0010192 |
01-07-2011 16:51 | Gyorgy Rethy | File Added: CR5912_resolution_v3.doc |
01-07-2011 16:52 | Gyorgy Rethy | Note Added: 0010193 |
01-07-2011 16:52 | Gyorgy Rethy | Status | assigned => resolved
01-07-2011 16:52 | Gyorgy Rethy | Resolution | open => fixed
01-07-2011 18:01 | Ina Schieferdecker | Note Added: 0010204 |
01-07-2011 18:02 | Ina Schieferdecker | Status | resolved => closed
01-07-2011 18:02 | Ina Schieferdecker | Fixed in Version | => Edition 4.3.2 (interim)

Notes

(0010157)
Gyorgy Rethy
30-06-2011 14:20 (edited on: 30-06-2011 14:22)

STF discussion on 30.06.2001: Add a stepwise description of regexp's behaviour to the text: 1) inpar shall match expression according to character pattern matching (acc. to B.1.5) 2) IF 1) is successful, it returns... (this part is specified already) Add a note pointing to the fact that TTCN-3 regexp is different than regular expressions in other languages.

(0010174)
Jacob Wieland - Spirent
01-07-2011 11:26

uploaded proposal, please review

(0010183)
Gyorgy Rethy
01-07-2011 15:41

Actually, the descrition of how regexp is working was there but in a wrong order, it was the second paragraph. So, have re-structured the existing text instead of adding one more explanation. See in CR5912_resolution_v1.doc. Pls. review.

(0010184)
Gyorgy Rethy
01-07-2011 15:41

Actually, the descrition of how regexp is working was there but in a wrong order, it was the second paragraph. So, have re-structured the existing text instead of adding one more explanation. See in CR5912_resolution_v2.doc. Pls. review.

(0010185)
Gyorgy Rethy
01-07-2011 15:41

Actually, the descrition of how regexp is working was there but in a wrong order, it was the second paragraph. So, have re-structured the existing text instead of adding one more explanation. See in CR5912_resolution_v2.doc. Pls. review.

(0010187)
Jacob Wieland - Spirent
01-07-2011 16:12

Except for the deletion of the 'it' (which introduces grammatical inconsistency), it's fine with me.

(0010192)
Gyorgy Rethy
01-07-2011 16:50

it was not deleted but moved to the bullet item; unfortunately to the first only. I have added "it" to the second bulet item too. Final version is in CR5912_resolution_v3.doc

(0010193)
Gyorgy Rethy
01-07-2011 16:52

Completed, reviewed.

(0010204)
Ina Schieferdecker
01-07-2011 18:01

Implemented as proposed.