diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-11 15:59:43 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-11 15:59:43 +0330 |
commit | fe81eba1c232ab99bcfedf9546a82b06c796b086 (patch) | |
tree | 1ddf9d17f14a69c9cbe93cdbb1ef557f812c79d7 /src/compiler/ast-tree.h | |
parent | 1a50974b834227190f7de3939db5689bb0702a34 (diff) |
some clean ups
Diffstat (limited to 'src/compiler/ast-tree.h')
-rw-r--r-- | src/compiler/ast-tree.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compiler/ast-tree.h b/src/compiler/ast-tree.h index bd357d2..c1f0464 100644 --- a/src/compiler/ast-tree.h +++ b/src/compiler/ast-tree.h @@ -1,7 +1,7 @@ #pragma once #include "compiler/parser.h" -#include <time.h> +#include "utils/time.h" typedef enum AstTreeToken { AST_TREE_TOKEN_FUNCTION, @@ -312,15 +312,15 @@ AstTreeVariables copyAstTreeVariables(AstTreeVariables variables, AstTreeRoots makeAstTree(const char *filePath #ifdef PRINT_STATISTICS , - struct timespec *lexingTime, - struct timespec *parsingTime + Time *lexingTime, + Time *parsingTime #endif ); AstTreeRoot *getAstTreeRoot(char *filePath, AstTreeRoots *roots #ifdef PRINT_STATISTICS , - struct timespec *lexingTime, - struct timespec *parsingTime + Time *lexingTime, + Time *parsingTime #endif ); AstTreeRoot *makeAstRoot(const ParserNode *parsedRoot, char *filePath); @@ -342,7 +342,7 @@ AstTree *astTreeParseValue(const ParserNode *parserNode, AstTreeToken token, AstTree *astTreeParseString(const ParserNode *parserNode, AstTreeHelper *helper); AstTree *astTreeParseKeyword(const ParserNode *parserNode, AstTreeToken token); -AstTree *astTreeParsePrintU64(const ParserNode *parserNode, +AstTree *astTreeParsePutc(const ParserNode *parserNode, AstTreeHelper *helper); AstTree *astTreeParseReturn(const ParserNode *parserNode, AstTreeHelper *helper); @@ -396,7 +396,7 @@ bool setTypesValueNull(AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesValueUndefined(AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesValueObject(AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesFunction(AstTree *tree, AstTreeSetTypesHelper helper); -bool setTypesPrintU64(AstTree *tree, AstTreeSetTypesHelper helper); +bool setTypesPutc(AstTree *tree, AstTreeSetTypesHelper helper); bool setTypesReturn(AstTree *tree, AstTreeSetTypesHelper helper, AstTreeFunction *function); bool setTypesTypeFunction(AstTree *tree, AstTreeSetTypesHelper helper); |