1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 #include <precomp.h> 23 #include <s2_luidl/pestate.hxx> 24 25 26 // NOT FULLY DEFINED SERVICES 27 #include <ary/doc/d_oldidldocu.hxx> 28 #include <s2_luidl/parsenv2.hxx> 29 30 31 32 33 namespace csi 34 { 35 namespace uidl 36 { 37 38 void Process_Identifier(const TokIdentifier &)39ParseEnvState::Process_Identifier( const TokIdentifier & ) 40 { 41 Process_Default(); 42 } 43 44 void Process_NameSeparator()45ParseEnvState::Process_NameSeparator() 46 { 47 Process_Default(); 48 } 49 50 void Process_Punctuation(const TokPunctuation &)51ParseEnvState::Process_Punctuation( const TokPunctuation & ) 52 { 53 Process_Default(); 54 } 55 56 void Process_BuiltInType(const TokBuiltInType &)57ParseEnvState::Process_BuiltInType( const TokBuiltInType & ) 58 { 59 Process_Default(); 60 } 61 62 void Process_TypeModifier(const TokTypeModifier &)63ParseEnvState::Process_TypeModifier( const TokTypeModifier & ) 64 { 65 Process_Default(); 66 } 67 68 void Process_MetaType(const TokMetaType &)69ParseEnvState::Process_MetaType( const TokMetaType & ) 70 { 71 Process_Default(); 72 } 73 74 void Process_Stereotype(const TokStereotype &)75ParseEnvState::Process_Stereotype( const TokStereotype & ) 76 { 77 Process_Default(); 78 } 79 80 void Process_ParameterHandling(const TokParameterHandling &)81ParseEnvState::Process_ParameterHandling( const TokParameterHandling & ) 82 { 83 Process_Default(); 84 } 85 86 void Process_Raises()87ParseEnvState::Process_Raises() 88 { 89 Process_Default(); 90 } 91 92 void Process_Needs()93ParseEnvState::Process_Needs() 94 { 95 Process_Default(); 96 } 97 98 void Process_Observes()99ParseEnvState::Process_Observes() 100 { 101 Process_Default(); 102 } 103 104 void Process_Assignment(const TokAssignment &)105ParseEnvState::Process_Assignment( const TokAssignment & ) 106 { 107 Process_Default(); 108 } 109 110 void Process_EOL()111ParseEnvState::Process_EOL() 112 { 113 MyPE().SetResult(done,stay); 114 } 115 116 117 void On_SubPE_Left()118ParseEnvState::On_SubPE_Left() 119 { 120 } 121 122 void Process_Default()123ParseEnvState::Process_Default() 124 { 125 if (bDefaultIsError) 126 MyPE().SetResult(not_done, pop_failure); 127 else // ignore: 128 MyPE().SetResult(done, stay); 129 } 130 131 132 } // namespace uidl 133 } // namespace csi 134 135