The Compiler API

The c8compiler.h file contains function prototypes for the Sybase CEP Compiler API, a set of functions that enable you to compile a Sybase CEP project file (.ccp) or schema file.

The primary functions in this API are the C8Compile() function and the C8RemoteCompile()C8RemoteCompile() function, which perform the same actions as the Sybase CEP compiler (c8_compiler on UNIX or c8_compiler.exe on Microsoft Windows). They translate a group of CCL statements into a form the server can use. You can specify the same options for C8Compile() as you can specify on the command line of the Sybase CEP compiler. (For a description of the command-line parameters of the c8_compiler program, see Compile a Project or a Schema File.)

The API provides additional functions that you may find useful if you want to specify options for the compiler, such as turning warning messages on or off. For a full description of these options, see Compile a Project or a Schema File, and especially the first table in that section.

Important:

Prior to calling any function from the client SDK, the SDK initialization function C8ClientSDKInitialize() must be called. See the descriptions of the C8ClientSDKInitialize() and C8ClientSDKShutdown() functions for more information.

The functions in the compiler API can be called from any out-of-process program. These functions may not be called from inside an in-process task, such as an in-process adapter or an in-process UDF.

The functionality provided by this compiler API is similar in the following Sybase CEP SDKs:

The Sybase CEP CCL compiler API is shown below.