Technical data

B
Target Language Compiler Error Messages
B-4
A language choice must be made using the %language directive prior to
using GENERATE or GENERATE_TYPE
To use the GENERATE or GENERATE_TYPE built-in functions, the Target Language
Compiler requires that you first specify the language being generated. It does
this to ensure that the block-level target file implements the same language
and type as specified in the
%language directive.
Ambiguous reference to
identifier
- must use array index to refer to one
of multiple scopes
When using a repeated scope identifier from a database file, you must specify
an index in order to disambiguate the reference. For example:
Database file:
block
{
Name "Abc2"
Parameter {
Name "foo"
Value 2
}
}
block
{
Name "Abc3"
Parameter {
Name "foo"
Value 3
}
}
TLC file:
%assign y = block
In this example, the reference to block is ambiguous because multiple repeated
scopes named “block” appear in the database file. Use an index to disambiguate
it, as in
%assign y = block[0]