summaryrefslogtreecommitdiff
path: root/include/parser/var.h
blob: dd981f524d408cc59b7131b0152baba58a040456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Variable definitions.
 * Copyright (c) 2023-2024, Quinn Stephens and the OSMORA team.
 * Provided under the BSD 3-Clause license.
 */

#ifndef _PARSER_VAR_H
#define _PARSER_VAR_H

#include <stddef.h>
#include "hashmap.h"
#include "parser/type.h"

struct variable {
    struct hashmap_entry hashmap_entry;

    char *name;
    size_t name_len;

    struct type *typ;
    int n_ptrs;
};

#endif /* !_PARSER_VAR_H */