home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
lr.zip
/
SAMPLE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-15
|
2KB
|
43 lines
#ifndef __SAMPLE_H
#define __SAMPLE_H
/*
╔══════════════════════════════════════════════════════════════════════════╗
║ Copyright (C) Transcendental Automation, 1993. ║
╟──────────────────────────────────────────────────────────────────────────╢
║ SAMPLE.H ║
╟──────────────────────────────────────────────────────────────────────────╢
║ This file is used by all modules and contains all necessary definitions ║
║ and declarations ║
╚══════════════════════════════════════════════════════════════════════════╝
*/
#include <io.h>
#include <lrx.inc>
#include <process.h>
#include "sample.str"
#define STACK_SIZE 1000 // size of stack of automaton.
typedef void(*LRSAF)(void*,SAMPLE_NPS*,LR_PT*);// type of semantic action.
extern LRSAF cmd[SAMPLE_n]; //table of semantic action(LRSAF - LR Semantic Action Function).
void InitCmdTable(); //initialization of this table
extern SAMPLE_NPS NTPS; // nonterminal pointer set
extern LR2 *grammar; // Pointer to compiled grammar
void InitTable (void); // see table.c for more information about these
float LookUp (char*); // functions.
void SetItem (char*,float);
void FreeTable (void);
void InitFloatStack (void);
void pushFloat (float);
float popFloat (void);
void FreeFloatStack (void);
#endif