23 lines
466 B
C
23 lines
466 B
C
/*
|
|
* SPDX-FileCopyrightText: 2025 William Bell
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#ifndef IDENTIFIER_H
|
|
#define IDENTIFIER_H
|
|
#include "../../parser.h"
|
|
#include "../../../lexer/token.h" // for Token
|
|
|
|
typedef struct {
|
|
char * name;
|
|
size_t line;
|
|
size_t column;
|
|
} ParsedIdentifier;
|
|
|
|
// Function declaration for parsing an identifier
|
|
ParsedValueReturn parse_identifier(Token *token);
|
|
|
|
void free_identifier(void *ptr);
|
|
|
|
#endif // IDENTIFIER_H
|