aboutsummaryrefslogtreecommitdiff
path: root/src/compiler/tree_parser/tree_parser.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2024-09-26 17:10:00 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2024-09-26 17:10:00 +0330
commit2ce72027e79a5aba03ecb4180039cd874b230c7a (patch)
treef9a99c4d241a69405a21c4212796276fda75edcb /src/compiler/tree_parser/tree_parser.h
parent3b5df1794867ccffc56ac5633af6c77a0b3952c8 (diff)
some small improvement
added \h in string (which can use hex as character)
Diffstat (limited to 'src/compiler/tree_parser/tree_parser.h')
-rw-r--r--src/compiler/tree_parser/tree_parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/tree_parser/tree_parser.h b/src/compiler/tree_parser/tree_parser.h
index 1eeb63d..8a9f7b5 100644
--- a/src/compiler/tree_parser/tree_parser.h
+++ b/src/compiler/tree_parser/tree_parser.h
@@ -1,6 +1,7 @@
#pragma once
#include <compiler/parser/parser.h>
+#include <stdint.h>
typedef enum TreeToken {
TREE_TOKEN_NONE = 0,
@@ -113,6 +114,7 @@ extern TypeId getTreeExpressionType(ParsedTree *const tree);
extern TypeId getType(const TreeDefineVariableMetadata *define);
extern bool isType(ParsedTree *const tree);
extern SizedString *nodeToString(ParsedNode const *node, SourceCode *code);
+extern uint64_t hexToInt(char const*begin,char const*end,bool *isRight);
extern void pushVariableToScope(TreeScopeMetadata *scope,TreeDefineVariableMetadata *variable);
extern void pushLineToScope(TreeScopeMetadata *scope,ParsedTree *line);