/* ------------------------------------------------------------------------ */ /* */ /* [scn_io.h] Scanner Definition Primimitives */ /* */ /* Copyright (c) 1993 by D\olle, Manns */ /* ------------------------------------------------------------------------ */ /* File generated by 'ctoh'. Don't change manually. */ #ifndef scn_io_INCL #define scn_io_INCL #include "standard.h" #include "binimg.h" #ifdef __cplusplus extern "C" { #endif /* Beside copying and disposing of scanner definitions this module provides functions that 1) generate a C module for a given scanner definition 2) unload a scanner definition to a binary image file 3) load a scanner definition from a binary image file. */ /* ------------------------------ Types & Macros ---------------------------- */ /*
Identifier of other other
*/
#define SCN_TOK_Other "[other]"
AbstractType( Scn_T ); /* Abstract scanner type */
/* ------------------------------ Basics ------------------------------------ */
c_string Scn_LanguageId(Scn_T x)
/* language or group name of scanner definition 'x' */
;
Scn_T Scn_copy(Scn_T x); /* copies scanner definition 'x' */
void Scn_free(Scn_T x); /* frees scanner definition 'x' */
/* ----------------------------- Binary Image ------------------------------- */
Scn_T Scn_fget_bin(BinImg_T img)
/* loads a scanner definition
from binary image 'img' (reentrant)
*/
;
Scn_T Scn_get_bin(void)
/* loads a scanner definition
from the current ( previously opened ) image
*/
;
void Scn_get(c_string Language, Scn_T *x)
/* loads a scanner definition named 'Language' into 'x'
from image [$PATH/]