Skip to content

Commit

Permalink
Prefix all statements with S
Browse files Browse the repository at this point in the history
For classes that mirror reserved keywords, a prefix of S was needed.
Adding the same prefix for the others for consistency sake.
  • Loading branch information
exilesprx committed Nov 21, 2023
1 parent 3b914d4 commit 16707b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Waffle\Grammar\Expr;
use Waffle\Grammar\Stmt;

class Expression extends Stmt
class SExpression extends Stmt
{
public function __construct(
private readonly Expr $expression
Expand Down
2 changes: 1 addition & 1 deletion src/Grammar/Statements/Visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public function visitBlockStmt(Block $stmt);

public function visitClassStmt(SClass $stmt);

public function visitExpressionStmt(Expression $stmt);
public function visitExpressionStmt(SExpression $stmt);

public function visitFunctionStmt(SFunction $stmt);

Expand Down

0 comments on commit 16707b5

Please sign in to comment.