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

ID | Project | Category | View Status | Date Submitted | Last Update
0007112 | Part 01: TTCN-3 Core Language | New Feature | public | 27-07-2015 11:19 | 11-12-2015 15:23

Reporter | Jacob Wieland - Spirent |
Assigned To | Gyorgy Rethy |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.8.1 (published 2016-07) | Fixed in Version | v4.8.1 (published 2016-07) |
Clause Reference(s) | 6.1.1., A.1.6.6.
Source (company - Author) | Testing Technologies - Jacob Wieland

Summary | 0007112: allow different syntax for binary string types

Description

It is very often a hassle to convert a binary representation taken from some other tool into a TTCN-3 octestsring or bitstring.
In normal representations, there are often spaces allowed between groups of digits or there are prefixes like 0x or 0b in front of some digit groups.
It would be very convenient if such a representation could be used directly in TTCN-3 as well so that no conversion would be necessary anymore.
Also, the strings can thus be structured and made more readable. Better readability almost always improves the quality of code.
Minimally, allowing spaces would be sufficient. For convenience sake allowing newlines and 0x/0b prefixes would be a bonus.

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files | CR7112_resolution_v1b.docx (34,757) 06-08-2015 15:34 http://oldforge.etsi.org/mantis/file_download.php?file_id=3247&type=bug CR7112_resolution_v2b.docx (35,193) 07-08-2015 12:34 http://oldforge.etsi.org/mantis/file_download.php?file_id=3257&type=bug

Issue History
Date Modified | Username | Field | Change
27-07-2015 11:19 | Jacob Wieland - Spirent | New Issue |
03-08-2015 11:07 | Gyorgy Rethy | Note Added: 0013023 |
03-08-2015 11:07 | Gyorgy Rethy | Assigned To | => Axel Rennoch
03-08-2015 11:07 | Gyorgy Rethy | Status | new => assigned
04-08-2015 09:08 | Gyorgy Rethy | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
06-08-2015 13:05 | Jacob Wieland - Spirent | Target Version | => v4.8.1 (published 2016-07)
06-08-2015 15:34 | Axel Rennoch | File Added: CR7112_resolution_v1b.docx |
06-08-2015 15:35 | Axel Rennoch | Note Added: 0013119 |
06-08-2015 15:36 | Axel Rennoch | Note Added: 0013120 |
06-08-2015 15:36 | Axel Rennoch | Assigned To | Axel Rennoch => Jacob Wieland - Spirent
06-08-2015 15:36 | Axel Rennoch | Status | assigned => acknowledged
07-08-2015 09:03 | Jacob Wieland - Spirent | Note Added: 0013122 |
07-08-2015 12:34 | Axel Rennoch | File Added: CR7112_resolution_v2b.docx |
07-08-2015 12:35 | Axel Rennoch | Note Added: 0013142 |
07-08-2015 12:35 | Axel Rennoch | Status | acknowledged => resolved
07-08-2015 12:35 | Axel Rennoch | Resolution | open => fixed
07-08-2015 12:35 | Axel Rennoch | Assigned To | Jacob Wieland - Spirent => Gyorgy Rethy
04-11-2015 14:02 | Gyorgy Rethy | Fixed in Version | => v4.8.1 (published 2016-07)
11-12-2015 15:23 | Gyorgy Rethy | Note Added: 0013601 |
11-12-2015 15:23 | Gyorgy Rethy | Status | resolved => closed

Notes

(0013023)
Gyorgy Rethy
03-08-2015 11:07

STF discussion 03-08-2015: Agreed to allow spaces. Analyse also possible introduction of alternative syntaxes.

(0013119)
Axel Rennoch
06-08-2015 15:35

following the discussion the uploaded file considers spaces and newlines, but not 0x/0b prefixes.

(0013120)
Axel Rennoch
06-08-2015 15:36

Please check the uploaded proposed solution for correctness.

(0013122)
Jacob Wieland - Spirent
07-08-2015 09:03

Small amendment, the newline shall consist of 'any combination of the newline characters that constitute a newline' (i.e. under windows CR LF is just ONE newline). Known combinations (to me) are: CR LF (windows), LF (linux), CR (macos). Maybe this should be reflected in the BNF rule. NLChar ::= CR [LF] | LF | VT

(0013142)
Axel Rennoch
07-08-2015 12:35

final rewording to consider windows newlines (CR LF)

(0013601)
Gyorgy Rethy
11-12-2015 15:23

Added to draft V4.7.4