mirror of
https://github.com/iritmaximus/ttk91-compiler.git
synced 2026-10-12 19:13:40 +03:00
23 lines
395 B
C
23 lines
395 B
C
#ifndef LABEL_H
|
|
#define LABEL_H
|
|
|
|
#include "expr.h"
|
|
|
|
typedef enum {
|
|
LABEL_CONST,
|
|
LABEL_TAG
|
|
} label_t;
|
|
|
|
struct label {
|
|
label_t kind;
|
|
char *name;
|
|
int value;
|
|
};
|
|
|
|
struct label * label_create(label_t kind, char* name, int value);
|
|
struct label * label_create_const(char* name);
|
|
struct label * label_create_const_sys(char* name);
|
|
struct label * label_create_tag(char* name);
|
|
|
|
#endif
|