summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-03-27 07:35:58 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-03-27 07:35:58 +0330
commit8ed01c4ca2d2356f008b40d8498173009f71d295 (patch)
tree931cd58461da6a137d7e6615657d7c7eb5bf1ed3 /src/compiler
parent4c7d3c1d1e71823efc47a78ef8a608ee1656b035 (diff)
fix bug in multiple dereference
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/parser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/parser.c b/src/compiler/parser.c
index 17d596b..2ab8860 100644
--- a/src/compiler/parser.c
+++ b/src/compiler/parser.c
@@ -105,7 +105,8 @@ static constexpr ParserOrder PARSER_ORDER[] = {
},
{
.ltr = false,
- ORDER_ARRAY(LEXER_TOKEN_SYMBOL_FUNCTION_ARROW, ),
+ ORDER_ARRAY(LEXER_TOKEN_SYMBOL_FUNCTION_ARROW,
+ LEXER_TOKEN_SYMBOL_POINTER, ),
},
{
.ltr = true,
@@ -114,7 +115,7 @@ static constexpr ParserOrder PARSER_ORDER[] = {
{
.ltr = true,
ORDER_ARRAY(LEXER_TOKEN_SYMBOL_PLUS, LEXER_TOKEN_SYMBOL_MINUS,
- LEXER_TOKEN_SYMBOL_POINTER, LEXER_TOKEN_SYMBOL_ADDRESS, ),
+ LEXER_TOKEN_SYMBOL_ADDRESS, ),
},
{
.ltr = true,