From 7221d2cb11fdd32b3fa583d0af00b97b2e7cac3f Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sun, 21 Nov 2021 12:25:13 -0800 Subject: [PATCH] Remove obsolete comments --- schala-lang/src/parsing/combinator.rs | 1 - schala-lang/src/parsing/peg_parser.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/schala-lang/src/parsing/combinator.rs b/schala-lang/src/parsing/combinator.rs index 223b04d..d9a2683 100644 --- a/schala-lang/src/parsing/combinator.rs +++ b/schala-lang/src/parsing/combinator.rs @@ -578,7 +578,6 @@ fn extended_expr_part(input: Span) -> ParseResult { ))(input) } -//TODO this shouldn't be an expression b/c type annotations disallowed here fn invocation_argument(input: Span) -> ParseResult { context( "invocation-argument", diff --git a/schala-lang/src/parsing/peg_parser.rs b/schala-lang/src/parsing/peg_parser.rs index a010677..bb2ed8c 100644 --- a/schala-lang/src/parsing/peg_parser.rs +++ b/schala-lang/src/parsing/peg_parser.rs @@ -1,8 +1,6 @@ use std::rc::Rc; use super::Parser; -//TODO make use of the format_parse_error function -//use crate::error::{SchalaError, format_parse_error}; use crate::ast::*; fn rc_string(s: &str) -> Rc { @@ -264,7 +262,6 @@ peg::parser! { rule call_part(parser: &mut Parser) -> Vec = "(" arguments:(invocation_argument(parser) ** ",") ")" { arguments } - //TODO this shouldn't be an expression b/c type annotations disallowed here rule invocation_argument(parser: &mut Parser) -> InvocationArgument = _ "_" _ { InvocationArgument::Ignored } / _ ident:identifier() _ "=" _ expr:expression(parser) { InvocationArgument::Keyword {