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

ID | Project | Category | View Status | Date Submitted | Last Update
0008193 | Part 01: TTCN-3 Core Language | Technical | public | 19-01-2023 10:15 | 16-12-2024 12:54

Reporter | Matthias Simon |
Assigned To | Jens Grabowski |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | resolved | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version |  | Fixed in Version |  |
Clause Reference(s) | n/a
Source (company - Author) | Nokia - Matthias Simon

Summary | 0008193: Redefine keywords and reserved words

Description

An explicit distinction between keywords and reserved words is a prerequisite for moving language parts, such as predefined functions, matching-mechanism or timers to some kind of predefined standard library. It would also simplify BNF rules.
Where's the difference?
A _reserved word_ is an identifier which cannot be used as a name for user-defined variables, functions, parameters, etc. For example the identifiers "int2str", "integer", "this" or "object" are reserved words and have not special syntactic meaning except for being predefined or reserved. In some scopes reserved words are allowed to be used by the user (for example as name in field-definitions).
A _keyword_ is a word with special meaning in a particular context. Keywords should not be used as identifiers (for example "for", "while", ...). There are some few exceptions however ("testcase", "class", "all", "any", ...):
testcase.stop; // "testcase" is used as identifier referencing the current testcase
testcase TC1() {} // "testcase" is a keyword introducing a testcase definition

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |
Attached Files |

Issue History
Date Modified | Username | Field | Change
19-01-2023 10:15 | Matthias Simon | New Issue |
05-09-2023 10:22 | Jens Grabowski | Note Added: 0016519 |
05-09-2023 10:24 | Jens Grabowski | Assigned To | => Jens Grabowski
05-09-2023 10:24 | Jens Grabowski | Status | new => assigned
16-12-2024 12:54 | Jens Grabowski | Note Added: 0016727 |
16-12-2024 12:54 | Jens Grabowski | Status | assigned => resolved
16-12-2024 12:54 | Jens Grabowski | Resolution | open => fixed

Notes

(0016519)
Jens Grabowski
05-09-2023 10:22

TTF discussion: To be discussed in the context of the next major release.

(0016727)
Jens Grabowski
16-12-2024 12:54

Discussion continues in Gitlab.