summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/fe/idl.ypp
diff options
context:
space:
mode:
authorFred Hornsey <hornseyf@objectcomputing.com>2018-09-19 16:12:16 -0500
committerFred Hornsey <hornseyf@objectcomputing.com>2018-09-19 16:12:16 -0500
commit1fdc730a5b27747a2f90500f836a1304e21a6f61 (patch)
tree086ffb2466dbe7ced8a0a996c7b756c4eb7267ff /TAO/TAO_IDL/fe/idl.ypp
parente552c6c73b3f7946e3a2de224ad341196ee2e3b9 (diff)
downloadATCD-1fdc730a5b27747a2f90500f836a1304e21a6f61.tar.gz
tao_idl: Fix IDL version enum other small things
Diffstat (limited to 'TAO/TAO_IDL/fe/idl.ypp')
-rw-r--r--TAO/TAO_IDL/fe/idl.ypp18
1 files changed, 8 insertions, 10 deletions
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