xref: /aoo41x/main/autodoc/source/parser/cpp/cpp_pe.cxx (revision 78bc99aa)
1*78bc99aaSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*78bc99aaSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*78bc99aaSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*78bc99aaSAndrew Rist  * distributed with this work for additional information
6*78bc99aaSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*78bc99aaSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*78bc99aaSAndrew Rist  * "License"); you may not use this file except in compliance
9*78bc99aaSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*78bc99aaSAndrew Rist  *
11*78bc99aaSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*78bc99aaSAndrew Rist  *
13*78bc99aaSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*78bc99aaSAndrew Rist  * software distributed under the License is distributed on an
15*78bc99aaSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*78bc99aaSAndrew Rist  * KIND, either express or implied.  See the License for the
17*78bc99aaSAndrew Rist  * specific language governing permissions and limitations
18*78bc99aaSAndrew Rist  * under the License.
19*78bc99aaSAndrew Rist  *
20*78bc99aaSAndrew Rist  *************************************************************/
21cdf0e10cSrcweir 
22cdf0e10cSrcweir #include <precomp.h>
23cdf0e10cSrcweir #include "cpp_pe.hxx"
24cdf0e10cSrcweir 
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
27cdf0e10cSrcweir #include <ary/doc/d_oldcppdocu.hxx>
28cdf0e10cSrcweir #include "cpp_tok.hxx"
29cdf0e10cSrcweir 
30cdf0e10cSrcweir 
31cdf0e10cSrcweir 
32cdf0e10cSrcweir 
33cdf0e10cSrcweir namespace cpp {
34cdf0e10cSrcweir 
35cdf0e10cSrcweir void
SetTokenResult(E_TokenDone i_eDone,E_EnvStackAction i_eWhat2DoWithEnvStack,ParseEnvironment * i_pParseEnv2Push)36cdf0e10cSrcweir Cpp_PE::SetTokenResult( E_TokenDone			i_eDone,
37cdf0e10cSrcweir 						E_EnvStackAction	i_eWhat2DoWithEnvStack,
38cdf0e10cSrcweir 						ParseEnvironment *	i_pParseEnv2Push )
39cdf0e10cSrcweir {
40cdf0e10cSrcweir 	rMyEnv.SetTokenResult(		i_eDone,
41cdf0e10cSrcweir 								i_eWhat2DoWithEnvStack,
42cdf0e10cSrcweir 								i_pParseEnv2Push );
43cdf0e10cSrcweir }
44cdf0e10cSrcweir 
Cpp_PE(Cpp_PE * io_pParent)45cdf0e10cSrcweir Cpp_PE::Cpp_PE( Cpp_PE * io_pParent )
46cdf0e10cSrcweir 	:	ParseEnvironment( io_pParent ),
47cdf0e10cSrcweir 		rMyEnv( io_pParent->Env() )
48cdf0e10cSrcweir {
49cdf0e10cSrcweir     csv_assert(io_pParent != 0);
50cdf0e10cSrcweir }
51cdf0e10cSrcweir 
Cpp_PE(EnvData & i_rEnv)52cdf0e10cSrcweir Cpp_PE::Cpp_PE( EnvData & i_rEnv )
53cdf0e10cSrcweir 	:	ParseEnvironment(0),
54cdf0e10cSrcweir 		rMyEnv(i_rEnv)
55cdf0e10cSrcweir {
56cdf0e10cSrcweir }
57cdf0e10cSrcweir 
58cdf0e10cSrcweir void
StdHandlingOfSyntaxError(const char *)59cdf0e10cSrcweir Cpp_PE::StdHandlingOfSyntaxError( const char * )
60cdf0e10cSrcweir {
61cdf0e10cSrcweir     SetTokenResult(not_done, pop_failure);
62cdf0e10cSrcweir }
63cdf0e10cSrcweir 
64cdf0e10cSrcweir 
65cdf0e10cSrcweir Cpp_PE *
Handle_ChildFailure()66cdf0e10cSrcweir Cpp_PE::Handle_ChildFailure()
67cdf0e10cSrcweir {
68cdf0e10cSrcweir  	return 0;
69cdf0e10cSrcweir }
70cdf0e10cSrcweir 
71cdf0e10cSrcweir }   // namespace cpp
72cdf0e10cSrcweir 
73