blob: 5170558ff0810cdfde713f61f6cce0cfd3328f7a (
plain) (
blame)
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
|
#ifndef SINTER_H
#define SINTER_H
#include <stdio.h>
#include "sexpr.h"
#include "parse.h"
typedef unsigned int uint;
typedef enum {
BITCODE,
LLVM_INTERMEDIATE,
INTERPRET,
GRAPHVIZ,
SINTER
} format_t;
typedef struct node node;
typedef union contents contents;
sexpr *new_int(int num, lloc_t lloc);
sexpr *new_float(double num, lloc_t lloc);
sexpr *new_id(char *id, lloc_t lloc);
sexpr *new_node(sexpr *l, sexpr *r, lloc_t lloc);
sexpr *new_str(char *str, lloc_t lloc);
void print_sexpr(sexpr *se);
void fprint_sexpr(FILE *f, sexpr *se);
void handle(sexpr *se);
#endif /* SINTER_H */
|