libmya 0.1.0
Library to parse Mya language.
Loading...
Searching...
No Matches
token.h
Go to the documentation of this file.
1#pragma once
2
3#include "types/token.h"
4
14void
15token_init(token_t* token, const char* lexeme, token_type_t type, unsigned int line, unsigned int column);
16
22void
Struct for a Mya token.
Definition token.h:34
void token_close(token_t *token)
Closes the given token.
Definition token.c:19
void token_init(token_t *token, const char *lexeme, token_type_t type, unsigned int line, unsigned int column)
Initializes a token struct.
Definition token.c:7
enum token_type token_type_t
Enumeration of token types.
struct token token_t
Struct for a Mya token.