ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0008193Part 01: TTCN-3 Core LanguageTechnicalpublic19-01-2023 10:1505-09-2023 10:24
Matthias Simon 
Jens Grabowski 
normalminorhave not tried
assignedopen 
 
 
n/a
Nokia - Matthias Simon
0008193: Redefine keywords and reserved words
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
No tags attached.
Issue History
19-01-2023 10:15Matthias SimonNew Issue
05-09-2023 10:22Jens GrabowskiNote Added: 0016519
05-09-2023 10:24Jens GrabowskiAssigned To => Jens Grabowski
05-09-2023 10:24Jens GrabowskiStatusnew => assigned

Notes
(0016519)
Jens Grabowski   
05-09-2023 10:22   
TTF discussion: To be discussed in the context of the next major release.