home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / spezial / 20 / st_txl / intprot.h < prev    next >
Encoding:
Text File  |  1985-07-18  |  2.8 KB  |  105 lines

  1. /* intprot.h
  2. Prototypen der verwendeten Funktionen des Interpreters.
  3. (c) 1990 Michael Beising & TOOLBOX
  4. */
  5.  
  6. /* error.c */
  7. void fatal_error (char *FehlerMeldung);
  8. void serror (char      *FehlerMeldung);
  9. void ResetError (void);
  10.  
  11. /* ibefehle.c */
  12.  
  13. int        FindInsPos (int LineNumber,PRGZEILE    **InsPos);
  14.  
  15. int crun(void);
  16. int ccommands(void);
  17. int cset(void);
  18. int cdruck(void);
  19. int cif (void);
  20. int cload(void);
  21. int csave(void);
  22. int cgoto(void);
  23. int cende(void);
  24. int cexit(void);
  25. int cmerke(void);
  26. int clist (void);
  27. int cneu(void);
  28. int ctrcon(void);      /* Tracer an */
  29. int ctrcoff(void);     /* Tracer aus */
  30. int cwdog(void);       /* Tracer einmal aktiv */
  31. int creadvar(void);    /* Variable einlesen */
  32. int ccopy(void);       /* in String kopieren */
  33. int cins(void);        /* in String einfügen */
  34. int cdel(void);        /* Teil des String löschen */
  35.  
  36. /* inspglin.c */
  37.  
  38. void InsIntLine (void);
  39. int  DelLine (int LineNumber);
  40.  
  41. /* interp.c */
  42.  
  43. void InterAct (void);
  44. int  InterpLine (void);
  45. int  DoProgram (void);
  46. int  MakeToken (void);
  47.  
  48. /* itracer.c */
  49.  
  50. void  Trace(void);     /* Hilfe zur Fehlersuche */
  51.  
  52. /* intutil.c */
  53.  
  54. void   ShowLine (PRGZEILE *FindZeile);
  55. VAR *  IsVariable (char *Name);
  56. int    SetVar (VAR *Wert);
  57. void   ReadValue (VAR *Wert);
  58. void   SetValue (VARDEF *Wert,VARDEF *NewVar,unsigned char Type);
  59. void   GetValue (VARDEF *Wert,VARDEF *NewVar,unsigned char Type);
  60. int    CmpVar (void);
  61. int    ReadComp (int *Op);
  62. int    Compare (int Op);
  63. void   PrintVar (char *Name);
  64. int    CalcExpression (VAR *Result);
  65. void   SetResultValue (VAR *Result);
  66. void   PushExp (void);
  67. void   CalcResult (int Op, int Ops);
  68. EXPDEF *PopExp (void);
  69. void   ClearProg (void);
  70.  
  71. /* neue Funktionen in intutil */
  72.  
  73. void    Expression (void);     /* berechne Ausdruck */
  74. void    Term (void);
  75. void    Faktor (void);
  76. int     TestFunc (int *func);  /* Funktionsname z.B. sqr ? */
  77.  
  78. void    NewString (VARDEF *Var,size_t len);
  79. void    MinMax (int Ops, int minmax);  /* min und max */
  80. void    Length (void);     /* Stringlänge */
  81. void    Left (void);       /* Zeichen aus linkem Stringteil */
  82. void    Right (void);      /*   "      "  rechtem     "     */
  83. void    Mid (void);        /*   "      "  der Mitte         */
  84. void    InStr(void);       /* String enthalten ?            */
  85.  
  86. int TestComma (void);      /* Komma gescannt ?              */
  87. int GetStringVar (VAR **str); /* Stringvariable gescannt ?  */
  88. int GetLong (long *val);   /* Ausdruck scannen und als long liefern */
  89.  
  90. /* scan.c */
  91.  
  92. int    Scan (void);
  93. void   NoSkipChar (void);
  94. void   SkipChar (void);
  95. void   GetGeklammert (char *buffer);
  96.  
  97. /* textbuf.c */
  98.  
  99. int    ReadProg (void);
  100. int    WriteProg (void);
  101. void   SetFileName (char *FName);
  102. char   *GetFileName (void);
  103.  
  104. /* Ende des Files INTPROT.H */
  105.