Skip to content

Commit

Permalink
Revert "Parser"
Browse files Browse the repository at this point in the history
This reverts commit 4661a90.
  • Loading branch information
deavmi committed May 21, 2024
1 parent 7229019 commit 43d9b09
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions source/tlang/compiler/parsing/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -2242,29 +2242,6 @@ public final class Parser
}
}

/**
* Handles cases where we start
* with the `*` token.
*
* 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");
Expand Down Expand Up @@ -2503,10 +2480,10 @@ public final class Parser
/* Parse the discard statement */
statement = parseDiscard();
}
/* If it is a dereference (a `*`) */
/* If it is a dereference assigment (a `*`) */
else if(symbol == SymbolType.STAR)
{
statement = parseStar();
statement = parseDerefAssignment();
}
/* If it is a kind-of comment */
else if(symbol == SymbolType.SINGLE_LINE_COMMENT || symbol == SymbolType.MULTI_LINE_COMMENT)
Expand Down

0 comments on commit 43d9b09

Please sign in to comment.