<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%% -*- mode: latex; TeX-master: "compilerbau.tex"; -*-

\begin{slide}{Symbole und -Tabellen}

\kopf{$ $Id: symbol.tex,v 1.1 2011-10-16 14:06:17 waldmann Exp $ $}

\begin{verbatim}
typedef double (*func_t) (double);
typedef struct {
  char *name;  /* name of symbol */
  int type;    /* type: either VAR or FNCT */
  union
  { double var;       /* value of a VAR   */
    func_t fnctptr;   /* value of a FNCT  */
  } value;
  struct symrec *next;    /* link field */
} symrec;
extern symrec * sym_table;
\end{verbatim}
Scanner muÃŸ neue Symbole eintragen und alte wiederfinden
(getsym/putsym).

Bessere Implementierung durch Hashing.
\end{slide}
</pre></body></html>