From 73c4808c44f75b7d6546f00f70779fcbf8e28754 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 24 Oct 2021 02:03:29 +0200 Subject: Postfix parsing --- src/parse/ast/nodes.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/parse/ast/nodes.rs') diff --git a/src/parse/ast/nodes.rs b/src/parse/ast/nodes.rs index 2a4f7c0..617a01c 100644 --- a/src/parse/ast/nodes.rs +++ b/src/parse/ast/nodes.rs @@ -87,6 +87,24 @@ pub struct TypedIdentifier { pub type_constraint: Option, } +#[derive(Debug, Clone)] +pub struct CallNode { + pub called: Expression, + pub arguments: Vec, +} + +#[derive(Debug, Clone)] +pub struct ArrayAccessNode { + pub array: Expression, + pub index: Expression, +} + +#[derive(Debug, Clone)] +pub struct MemberAccessNode { + pub object: Expression, + pub member_name: Identifier, +} + #[derive(Debug, Clone)] pub struct FnNode { pub header: FnHeader, -- cgit 1.4.1