From ba3d43f7b2a18984be27f3d472884a19f3adce4c Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 27 Dec 2020 20:45:20 +0100 Subject: Refresh function call and dictionary syntax - No colon between function name and arguments, just whitespace - "Named" arguments (previously "keyword" arguments) use colon instead of equals sign --- src/syntax/token.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/syntax/token.rs') diff --git a/src/syntax/token.rs b/src/syntax/token.rs index e105ad2f..12f4d10d 100644 --- a/src/syntax/token.rs +++ b/src/syntax/token.rs @@ -54,10 +54,8 @@ pub enum Token<'s> { Colon, /// A comma: `,`. Comma, - /// An equals sign: `=`. - Equals, - /// A double forward chevron: `>>`. - Chain, + /// A pipe: `|`. + Pipe, /// A plus: `+`. Plus, /// A hyphen: `-`. @@ -150,8 +148,7 @@ impl<'s> Token<'s> { Self::Colon => "colon", Self::Comma => "comma", - Self::Equals => "equals sign", - Self::Chain => "function chaining operator", + Self::Pipe => "pipe", Self::Plus => "plus sign", Self::Hyphen => "minus sign", Self::Slash => "slash", -- cgit v1.2.3