From 4032707dc94c2aa4a0b8e7a631b0d7ca6ae27429 Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 8 Oct 2017 21:26:47 -0700 Subject: [PATCH] Kill some comments --- src/schala_lang/parsing.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/schala_lang/parsing.rs b/src/schala_lang/parsing.rs index df5650e..ee60e24 100644 --- a/src/schala_lang/parsing.rs +++ b/src/schala_lang/parsing.rs @@ -244,30 +244,6 @@ mod schala_tokenizer_tests { } } -/* for reference, here is the scala EBNF for expressions: - * see http://scala-lang.org/files/archive/spec/2.12/06-expressions.html - -Expr ::= (Bindings | id | ‘_’) ‘=>’ Expr -| Expr1 -Expr1 ::= ‘if’ ‘(’ Expr ‘)’ {nl} Expr [[semi] else Expr] -| ‘while’ ‘(’ Expr ‘)’ {nl} Expr -| ‘try’ ‘{’ Block ‘}’ [‘catch’ ‘{’ CaseClauses ‘}’] -[‘finally’ Expr] -| ‘do’ Expr [semi] ‘while’ ‘(’ Expr ’)’ -| ‘for’ (‘(’ Enumerators ‘)’ | ‘{’ Enumerators ‘}’) -{nl} [‘yield’] Expr -| ‘throw’ Expr -| ‘return’ [Expr] -| [SimpleExpr ‘.’] id ‘=’ Expr -| SimpleExpr1 ArgumentExprs ‘=’ Expr -| PostfixExpr -| PostfixExpr Ascription -| PostfixExpr ‘match’ ‘{’ CaseClauses ‘}’ - -PrefixExpr ::= [‘-’ | ‘+’ | ‘~’ | ‘!’] SimpleExpr - -*/ - /* Schala EBNF Grammar */ /* Terminal productions are in 'single quotes' or UPPERCASE if they are a class * or not representable in ASCII