24 lines
533 B
C
24 lines
533 B
C
/*
|
|
* SPDX-FileCopyrightText: 2025 William Bell
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#ifndef CALL_H
|
|
#define CALL_H
|
|
#include "../../parser.h"
|
|
#include "../../../lexer/token.h" // for Token
|
|
|
|
typedef struct {
|
|
ParsedValue * to_call;
|
|
DArray args;
|
|
uint64_t line;
|
|
uint64_t column;
|
|
} ParsedCall;
|
|
|
|
// Function declaration for parsing an identifier
|
|
ParsedValueReturn parse_call(char *file, DArray *tokens, size_t *index,
|
|
ParsedValue *to_call);
|
|
void free_parse_call(void *ptr);
|
|
|
|
#endif // CALL_H
|