/usr/include/styx/cfg_abs.h is in styx-dev 2.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | /*----------------------------------------------------------------------------*/
/* */
/* [cfg_abs.h] Abstract Context Free Grammar */
/* */
/* Copyright (c) 1993 by Doelle, Manns */
/*----------------------------------------------------------------------------*/
/* File generated by 'ctoh'. Don't change manually. */
#ifndef cfg_abs_INCL
#define cfg_abs_INCL
#include "standard.h"
#include "hset.h"
#include "prs.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
<p>[cfg_abs] provides functions that derives the nonterminal and production classes
which constitutes the abstract context free grammar from a given parse table.
<p>For further documentation of the definition of an abstract context free grammar
follow the reference to module <a href="prs_gen.htm">[prs_gen]</a>.<br><br>
*/
/* ------------------------------- Macros ------------------------------------ */
/*
Properties of nonterminals and their classes
*/
#define ACFG_NTTYP_LIST 1
#define ACFG_NTTYP_CLASS 2
#define ACFG_NTTYP_OPT 4
#define ACFG_NTTYP_NIL 8
#define ACFG_NTTYP_RECTYP 16
#define ACFG_NTTYP_REF0 32
#define ACFG_NTTYP_REF1 64
#define ACFG_NTTYP_START 128
#define ACFG_NTTYP_PRIM 256
#define ACFG_NTTYP_PRIMC 512
#define ACFG_NTTYP_EMPTY 1024
#define ACFG_NTTYP_RECREF 2048
#define ACFG_NTTYP_CONSREF 4096
#define ACFG_HAS_NTTYP(v,t) ( (((int)(v)) & ((int)(t))) > 0 )
/* ------------------------------- API --------------------------------------- */
c_bool acfg_init
(
PLR_Tab PTab, int** aPol, HS_Set** aNtm, HS_Set** aPrd, c_bool errmsg
)
/* creates & fills 'aPol', 'aNtm', 'aPrd' from parse table 'PTab'
'aPol' :- polymorph 'cons' classes
'aNtm' :- nonterminal partition
'aPrd' :- nonterminal class productions
*/
;
c_bool acfg_init_doc
(
PLR_Tab PTab, int** aPol, HS_Set** aNtm, HS_Set** aPrd
)
/* creates & fills 'aPol', 'aNtm', 'aPrd' from parse table 'PTab',
as needed for the generation of a refernce document
'aPol' :- nonterminal/class types/properties
'aNtm' :- nonterminal partition
'aPrd' :- nonterminal productions
*/
;
void acfg_quit(PLR_Tab PTab,int* aPol, HS_Set* aNtm, HS_Set* aPrd)
/* deletes 'aPol', 'aNtm' and 'aPrd'
( originally created from parse table 'PTab' )
*/
;
#ifdef __cplusplus
}
#endif
#endif
|