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 39 ParseEnvState::Process_Identifier( const TokIdentifier & ) 40 { 41 Process_Default(); 42 } 43 44 void 45 ParseEnvState::Process_NameSeparator() 46 { 47 Process_Default(); 48 } 49 50 void 51 ParseEnvState::Process_Punctuation( const TokPunctuation & ) 52 { 53 Process_Default(); 54 } 55 56 void 57 ParseEnvState::Process_BuiltInType( const TokBuiltInType & ) 58 { 59 Process_Default(); 60 } 61 62 void 63 ParseEnvState::Process_TypeModifier( const TokTypeModifier & ) 64 { 65 Process_Default(); 66 } 67 68 void 69 ParseEnvState::Process_MetaType( const TokMetaType & ) 70 { 71 Process_Default(); 72 } 73 74 void 75 ParseEnvState::Process_Stereotype( const TokStereotype & ) 76 { 77 Process_Default(); 78 } 79 80 void 81 ParseEnvState::Process_ParameterHandling( const TokParameterHandling & ) 82 { 83 Process_Default(); 84 } 85 86 void 87 ParseEnvState::Process_Raises() 88 { 89 Process_Default(); 90 } 91 92 void 93 ParseEnvState::Process_Needs() 94 { 95 Process_Default(); 96 } 97 98 void 99 ParseEnvState::Process_Observes() 100 { 101 Process_Default(); 102 } 103 104 void 105 ParseEnvState::Process_Assignment( const TokAssignment & ) 106 { 107 Process_Default(); 108 } 109 110 void 111 ParseEnvState::Process_EOL() 112 { 113 MyPE().SetResult(done,stay); 114 } 115 116 117 void 118 ParseEnvState::On_SubPE_Left() 119 { 120 } 121 122 void 123 ParseEnvState::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