
| Key: |
SPEC-268
|
| Type: |
Change Request
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Minor
|
| Reporter: |
Thomas Beale
|
| Votes: |
1
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
| Change Description: |
The following changes are made (note that these changes allow both non-parenthesised and parenthesised forms of dADL to exist, even in the same archetype).
In the dADL grammar rules, the following rule is updated:
type_identifier:
'(' V_TYPE_IDENTIFIER ')'
| '(' V_GENERIC_TYPE_IDENTIFIER ')'
| V_TYPE_IDENTIFIER
| V_GENERIC_TYPE_IDENTIFIER
In the cADL scanner rules, a new pattern match needs to be added in the V_C_DOMAIN_TYPE section:
-- the following version matches a type name without () and is deprecated
[A-Z]{IDCHAR}*[ \n]*< -- match a pattern like
-- 'Type_Identifier whitespace <'
-- the following version is correct ADL 1.4/ADL 1.5
\([A-Z]{IDCHAR}*\)[ \n]*< -- match a pattern like
-- '(Type_Identifier) whitespace <'
The following changes are made (note that these changes allow both non-parenthesised and parenthesised forms of dADL to exist, even in the same archetype).
In the dADL grammar rules, the following rule is updated:
type_identifier:
'(' V_TYPE_IDENTIFIER ')'
| '(' V_GENERIC_TYPE_IDENTIFIER ')'
| V_TYPE_IDENTIFIER
| V_GENERIC_TYPE_IDENTIFIER
In the cADL scanner rules, a new pattern match needs to be added in the V_C_DOMAIN_TYPE section:
-- the following version matches a type name without () and is deprecated
[A-Z]{IDCHAR}*[ \n]*< -- match a pattern like
-- 'Type_Identifier whitespace <'
-- the following version is correct ADL 1.4/ADL 1.5
\([A-Z]{IDCHAR}*\)[ \n]*< -- match a pattern like
-- '(Type_Identifier) whitespace <'
|
| Impact Analysis: |
|
| Analyst: |
Rong Chen and Thomas Beale
|
|
The parentheses around the optional type identifier is missing in the dADL grammar
The example on type information ( from the ADL document) looks like this:
destinations = <
["seville"] = (TOURIST_DESTINATION) <
....
>
Note that the parentheses around the type id. It doesn't seem to be supported by the current grammar.
|
|
Description
|
The parentheses around the optional type identifier is missing in the dADL grammar
The example on type information ( from the ADL document) looks like this:
destinations = <
["seville"] = (TOURIST_DESTINATION) <
....
>
Note that the parentheses around the type id. It doesn't seem to be supported by the current grammar. |
Show » |
|