From 7229019cfcd7f727d159614c539a1d549115fc38 Mon Sep 17 00:00:00 2001 From: Tristan Brice Velloza Kildaire Date: Tue, 21 May 2024 18:09:09 +0200 Subject: [PATCH] Parser - h --- source/tlang/compiler/parsing/core.d | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/source/tlang/compiler/parsing/core.d b/source/tlang/compiler/parsing/core.d index c19fa5e6..a55d791f 100644 --- a/source/tlang/compiler/parsing/core.d +++ b/source/tlang/compiler/parsing/core.d @@ -2244,29 +2244,27 @@ public final class Parser /** * Handles cases where we start - * with the `*` token. This could - * include `*ptr = ...` or, perhaps, - * a function call with `*n.n()` + * with the `*` token. * - * FIXME: Last one sounds stupid - * asf + * This would essentially + * only ever be for pointer + * dereferences in assignment + * form * * Returns: a `Statement` */ private Statement parseStar() { WARN("parseStar(): Enter"); - Statement stmt = parseDerefAssignment(); - - - - WARN("parseStar(): Leave"); return stmt; } - + /** + * Parses a pointer dereference + * Returns: + */ private Statement parseDerefAssignment() { WARN("parseDerefAssignment(): Enter");