Crestron simpl plus language ref 사용자 설명서
Software Crestron
SIMPL+
®
294
z SIMPL+
®
Language Reference Guide - DOC. 5797G
Compiler Error 1005
syntax error: Unexpected symbol in compiler directive:
'<identifier>'
'<identifier>'
An invalid identifier is following a compiler directive.
The following are examples of this error:
#DEFINE_CONSTANT MyIntConst 100 // ok
#DEFINE_CONSTANT “MyIntConst” 100 // error – MyIntConst
should not
// be in quotes – this
// will be evaluated as
// a literal string
Compiler Error 1006
syntax error: Invalid #DEFINE_CONSTANT value:
'<identifier>'
'<identifier>'
The value for a #DEFINE_CONSTANT compiler directive must be either a literal
string or an integer value. Expressions, variables, functions and events cannot be
specified as the compiler directive’s value.
string or an integer value. Expressions, variables, functions and events cannot be
specified as the compiler directive’s value.
The following are examples of this error:
INTEGER x;
#DEFINE_CONSTANT MyIntConst 100 // ok
#DEFINE_CONSTANT MyStrConst “abc” // ok
#DEFINE_CONSTANT MyExprConst (1+2) // error – expressions
are
// not allowed
#DEFINE_CONSTANT MyVarConst x // error –
substitutions are
// not allowed
#DEFINE_CONSTANT MyExprConst (x+1) // error – macros
are not
// supported
#DEFINE_CONSTANT MyFuncConst myFunc // error
#DEFINE_CONSTANT MyFuncConst getc // error