Initial commit

This commit is contained in:
2025-11-17 10:28:09 +01:00
parent 7bff81691f
commit 6ee36e26be
391 changed files with 110253 additions and 0 deletions

42
source/variable.h Normal file
View File

@@ -0,0 +1,42 @@
#ifndef _variable
#define _variable
#include "index.h"
#include "array.h"
#include "string.h"
#include "tools.h"
#include "lexer.h"
#include <stdio.h>
struct variable{
char * variableName;
char * datatype;
char * declaration;
int isPointer;
int lineNumber;
};
struct variable * variabe_new();
void variable_getVariablesByArgumentParts( struct array * argumentParts, struct array * variables, struct array * classesArray );
struct variable * variable_getByName( struct array * variables, char * name );
int variable_isPointer( struct array * propertyParts );
void variable_extractFromDeclaration( lexer * currentLexer, int currentKey, int i, char * body, struct array * variables );
#endif