[scn_io.h] Scanner Definition Primimitives


#include "standard.h"



   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]"


Scn_T Abstract scanner type


Basics

c_string Scn_LanguageId(Scn_T x)
language 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_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/]<Language>.lim

void Scn_put_bin(Scn_T x)
unloads scanner definition 'x'
to the current ( previously opened ) image

void Scn_put(c_string Environ, Scn_T x)
unloads scanner definition 'x'
to image [$'Environ'/]<Language>.lim



C-Module

void Scn_C_Modul(c_string Environ, Scn_T x)
creates source [$'Environ'/]<Language>_lim.c
for scanner definition 'x'