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 "cpp_pe.hxx" 24 25 26 // NOT FULLY DEFINED SERVICES 27 #include <ary/doc/d_oldcppdocu.hxx> 28 #include "cpp_tok.hxx" 29 30 31 32 33 namespace cpp { 34 35 void 36 Cpp_PE::SetTokenResult( E_TokenDone i_eDone, 37 E_EnvStackAction i_eWhat2DoWithEnvStack, 38 ParseEnvironment * i_pParseEnv2Push ) 39 { 40 rMyEnv.SetTokenResult( i_eDone, 41 i_eWhat2DoWithEnvStack, 42 i_pParseEnv2Push ); 43 } 44 45 Cpp_PE::Cpp_PE( Cpp_PE * io_pParent ) 46 : ParseEnvironment( io_pParent ), 47 rMyEnv( io_pParent->Env() ) 48 { 49 csv_assert(io_pParent != 0); 50 } 51 52 Cpp_PE::Cpp_PE( EnvData & i_rEnv ) 53 : ParseEnvironment(0), 54 rMyEnv(i_rEnv) 55 { 56 } 57 58 void 59 Cpp_PE::StdHandlingOfSyntaxError( const char * ) 60 { 61 SetTokenResult(not_done, pop_failure); 62 } 63 64 65 Cpp_PE * 66 Cpp_PE::Handle_ChildFailure() 67 { 68 return 0; 69 } 70 71 } // namespace cpp 72 73