00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef __CW_IPARSER_SPEC_H__
00041 #define __CW_IPARSER_SPEC_H__
00042
00043 #if defined __cplusplus
00044
00045 class IParserSpec;
00046
00053 extern IParserSpec *cw_parserSpec;
00054
00055 #define CLINK extern "C"
00056
00057 #else
00058
00059 #define CLINK
00060
00061 #endif
00062
00063 #include "cw_misc.h"
00064
00065
00080 CLINK void IParserSpec_addProduction (char *name,
00081 char *retTypeName, int lineTypeLine,
00082 char *formalArgs, int lineArgsLine,
00083 char *exceptList, int exceptListLine,
00084 char *preambleCode, int preambleCodeLine,
00085 void *expansion);
00086
00087 CLINK void IParserSpec_setPreambleCode (char *block);
00088
00089 CLINK void IParserSpec_setClassName (char *className);
00090
00091 CLINK void IParserSpec_setInheritance (char *inheritance);
00092
00093 CLINK void IParserSpec_addCodeBlock (char *block);
00094
00095
00096
00097 #endif