restructure fs
This commit is contained in:
9
lang/Nub.Lang/Frontend/Parsing/ArrayIndexAccessNode.cs
Normal file
9
lang/Nub.Lang/Frontend/Parsing/ArrayIndexAccessNode.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Nub.Lang.Frontend.Parsing;
|
||||
|
||||
public class ArrayIndexAccessNode(IdentifierNode identifier, ExpressionNode index) : ExpressionNode
|
||||
{
|
||||
public IdentifierNode Identifier { get; } = identifier;
|
||||
public ExpressionNode Index { get; } = index;
|
||||
|
||||
public override string ToString() => $"{Identifier}[{Index}]";
|
||||
}
|
||||
Reference in New Issue
Block a user