www.pudn.com > cppcc.rar > cw_itoken_spec.h
/*
* File: cw_itoken_spec.h
* $Id: cw_itoken_spec.h,v 1.1 2002/05/04 17:46:53 alec Exp $
*
* Author: Alec Panoviciu (alecu@email.com)
*
* Comments:
*
* Revision history:
*
* $Log: cw_itoken_spec.h,v $
* Revision 1.1 2002/05/04 17:46:53 alec
* *** empty log message ***
*
*/
/*
Copyright (C) 2002 Alexandru Panoviciu (alecu@email.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __CW_ITOKEN_SPEC_H__
#define __CW_ITOKEN_SPEC_H__
#if defined __cplusplus
class ITokenSpec;
/**
* \ingroup cw_itoken_spec
*
* This will point to the ITookenSpec object that is used by the parser. Its
* methods will actually be called from the parser C code though this
* wrapper. This pointer must be set to an instance of a class the implements
* the ITokenSpec interface by LexYaccParser before the yyparse method is
* called.
*/
extern ITokenSpec *cw_tokenSpec;
#define CLINK extern "C"
#else
#define CLINK
#endif
#include "cw_misc.h"
/**
* \defgroup cw_itoken_spec ITokenSpec C Wrapper
*
* These are the wrapper functino that get callecd from the C parser
* code. Each of these function will call the corresponding method of the
* ITokenSpec instance pointed to by cw_tokenSpec.
*
* @{
*/
CLINK void ITokenSpec_setClassName (char *className_);
CLINK void ITokenSpec_setInheritance (char *inheritance_);
CLINK void ITokenSpec_setPreambleCode (char *preambleCode_);
CLINK void ITokenSpec_addCodeBlock (char *block_);
/* @} */
#endif /* #ifndef __CW_ITOKEN_SPEC_H__ */