home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / online / source / c / compilers / C_Interp.sit.hqx / C_Interp / Interp.h < prev    next >
Text File  |  1992-04-29  |  818b  |  28 lines

  1. /*
  2.     Terminal 2.2
  3.     "Interp.h"
  4. */
  5.  
  6. typedef long INTEGER;        /* Pointers and integers are mixed */
  7.  
  8. /* ----- Intrinsic function table (provided by shell) ------------------ */
  9.  
  10. typedef INTEGER (*IFUNC)(INTEGER *);
  11.  
  12. typedef struct {
  13.     Byte *fname;
  14.     IFUNC fn;    /* Parameter is (INTEGER *) */
  15. } INTRINSIC;
  16.  
  17. /* ----- Functions provided by interpreter ----------------------------- */
  18.  
  19. void SI_Load(INTRINSIC *, Byte *, long);    /* Load and link */
  20. INTEGER SI_Interpret(void);                    /* Start the interpreter */
  21. INTEGER SI_stack(INTEGER *);                /* Remaining stack space */
  22.  
  23. /* ----- Functions provided by the shell ------------------------------- */
  24.  
  25. Byte SI_GetSource(void);                    /* Get next char from source */
  26. void SI_UngetSource(Byte);                    /* char not needed now */
  27. void SI_Error(short, Byte *, short);        /* Error from interpreter */
  28.