summaryrefslogtreecommitdiff
path: root/TAO/CIAO/CCF/CCF/IDL2/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/CCF/CCF/IDL2/Parser.cpp')
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Parser.cpp45
1 files changed, 13 insertions, 32 deletions
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Parser.cpp b/TAO/CIAO/CCF/CCF/IDL2/Parser.cpp
index bfc725d4d36..3f87695c812 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/Parser.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/Parser.cpp
@@ -356,11 +356,8 @@ namespace CCF
act_typedef_begin (
f.typedef_ (), &SemanticAction::Typedef::begin),
- act_typedef_begin_unbounded_seq (
- f.typedef_ (), &SemanticAction::Typedef::begin_unbounded_seq),
-
- act_typedef_begin_bounded_seq (
- f.typedef_ (), &SemanticAction::Typedef::begin_bounded_seq),
+ act_typedef_begin_seq (
+ f.typedef_ (), &SemanticAction::Typedef::begin_seq),
act_typedef_begin_bounded_string (
f.typedef_ (), &SemanticAction::Typedef::begin_bounded_string),
@@ -368,12 +365,6 @@ namespace CCF
act_typedef_begin_bounded_wstring (
f.typedef_ (), &SemanticAction::Typedef::begin_bounded_wstring),
- act_typedef_begin_array (
- f.typedef_ (), &SemanticAction::Typedef::begin_array),
-
- act_typedef_bound (
- f.typedef_ (), &SemanticAction::Typedef::bound),
-
act_typedef_declarator (
f.typedef_ (), &SemanticAction::Typedef::declarator),
@@ -1154,16 +1145,11 @@ namespace CCF
;
typedef_declarator =
- ( simple_identifier
- >> !( LSBRACE[act_typedef_begin_array][act_const_expr_flush]
- >> numeric_const_expr[act_typedef_bound]
- >> RSBRACE
- )
- >> *( LSBRACE[act_const_expr_flush]
- >> numeric_const_expr[act_typedef_bound]
- >> RSBRACE
- )
- )[act_typedef_declarator]
+ simple_identifier[act_typedef_declarator]
+ >> *( LSBRACE[act_const_expr_flush] // flush expression stacks
+ >> numeric_const_expr
+ >> RSBRACE
+ )
;
typedef_type_spec =
@@ -1172,17 +1158,12 @@ namespace CCF
(
SEQUENCE
>> LT
- >>
- (
- (identifier >> GT)[act_typedef_begin_unbounded_seq]
- |
- (
- identifier[act_typedef_begin_bounded_seq]
- >> COMMA[act_const_expr_flush] // flush expression stacks
- >> numeric_const_expr[act_typedef_bound]
- >> GT
- )
- )
+ >> identifier[act_typedef_begin_seq]
+ >> !(
+ COMMA[act_const_expr_flush] // flush expression stacks
+ >> numeric_const_expr
+ )
+ >> GT
)
|
(