summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/fe
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/fe')
-rw-r--r--TAO/TAO_IDL/fe/idl.ll3
-rw-r--r--TAO/TAO_IDL/fe/idl.ypp18
2 files changed, 11 insertions, 10 deletions
diff --git a/TAO/TAO_IDL/fe/idl.ll b/TAO/TAO_IDL/fe/idl.ll
index 817051334be..fbc5ad7e337 100644
--- a/TAO/TAO_IDL/fe/idl.ll
+++ b/TAO/TAO_IDL/fe/idl.ll
@@ -204,6 +204,9 @@ oneway return IDL_ONEWAY;
return IDL_SCOPE_DELIMITOR;
}
+@annotation return IDL_ANNOTATION_DECL;
+@ return IDL_ANNOTATION_SYMBOL;
+
[a-ij-rs-zA-IJ-RS-Z_][a-ij-rs-zA-IJ-RS-Z0-9_]* {
// Make sure that this identifier is not a C++ keyword. If it is,
// prepend it with a _cxx_. Lookup in the perfect hash table for C++
diff --git a/TAO/TAO_IDL/fe/idl.ypp b/TAO/TAO_IDL/fe/idl.ypp
index 8b57341f209..5f3461df675 100644
--- a/TAO/TAO_IDL/fe/idl.ypp
+++ b/TAO/TAO_IDL/fe/idl.ypp
@@ -281,6 +281,9 @@ AST_Expression::ExprType t_param_const_type = AST_Expression::EV_none;
%token <wcval> IDL_WCHAR_LITERAL
%token <wsval> IDL_WSTRING_LITERAL
+%token IDL_ANNOTATION_DECL
+%token IDL_ANNOTATION_SYMBOL
+
/*
* These are production names:
*/
@@ -2351,14 +2354,9 @@ positive_int_expr :
}
;
-/* Annotations
- TODO: actions
- TODO: annotation_dcl and friends
- */
-
annotation_dcl
- : "@annotation" IDENTIFIER '{' annotation_body '}' {
- if (idl_global->idl_version_ >= IDL_VERSION_4_0)
+ : IDL_ANNOTATION_DECL IDENTIFIER '{' annotation_body '}' {
+ if (idl_global->idl_version_ >= IDL_VERSION_4)
{
ACE_DEBUG ((LM_WARNING,
ACE_TEXT ("WARNING: in %C on line %d:\n")
@@ -2400,7 +2398,7 @@ annotation_member_dcl
annotation_member_type
: const_type /* Also covers scope_name wanted by the spec grammer */
- | "any" /* supported by this compiler? */
+ | any_type
;
defaulted_annotation_member_dcl
@@ -2414,7 +2412,7 @@ annotation_member
annotations
: annotations annotation_appl {
- if (idl_global->idl_version_ < IDL_VERSION_4_0)
+ if (idl_global->idl_version_ < IDL_VERSION_4)
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("ERROR: in %C on line %d:\n")
@@ -2431,7 +2429,7 @@ annotations
;
annotation_appl
- : '@' scoped_name annotation_appl_params_maybe
+ : IDL_ANNOTATION_SYMBOL scoped_name annotation_appl_params_maybe
;
annotation_appl_params_maybe