|
libpulsar
A modular compiler for the pulsar programming language
|
Defines a token. More...
#include "def.h"#include "enum/make.h"#include "loc.h"#include "util/dynarr.h"#include "token_type.h"Go to the source code of this file.
Data Structures | |
| struct | ps_token |
| Represents a token. More... | |
Macros | |
| #define | ENUM TO_ENUM |
| #define | ps_token_arr_new() ps_dynarr_new(struct ps_token_arr) |
| #define | ps_token_arr_free(arr) ps_dynarr_free(arr) |
Enumerations | |
| enum | ps_token_type { PS_TOKEN_TYPES_NUMBER } |
| The type of a token. More... | |
Functions | |
| STR | ps_token_type_to_string (enum ps_token_type type) |
Returns: the string representation of the given token type type. | |
| PS_PRINT_DECL (ps_token) | |
| struct ps_token_arr | ps_dynarr (struct ps_token) |
| Represents a list of tokens. | |
Defines a token.
Definition in file token.h.
| #define ps_token_arr_free | ( | arr | ) | ps_dynarr_free(arr) |
| #define ps_token_arr_new | ( | ) | ps_dynarr_new(struct ps_token_arr) |
| enum ps_token_type |
| struct ps_token_arr ps_dynarr | ( | struct ps_token | ) |
Represents a list of tokens.
| PS_PRINT_DECL | ( | ps_token | ) |
| STR ps_token_type_to_string | ( | enum ps_token_type | type | ) |