File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
shared/src/main/scala/scala/util/parsing/combinator Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,6 @@ import scala.language.implicitConversions
5656 */
5757
5858trait PackratParsers extends Parsers {
59-
60- // type Input = PackratReader[Elem]
61-
6259 /**
6360 * A specialized `Reader` class that wraps an underlying `Reader`
6461 * and provides memoization of parse results.
Original file line number Diff line number Diff line change @@ -34,9 +34,8 @@ trait StdTokenParsers extends TokenParsers {
3434 * @param chars The character string making up the matched keyword.
3535 * @return a `Parser` that matches the given string
3636 */
37- // implicit def keyword(chars: String): Parser[String] = accept(Keyword(chars)) ^^ (_.chars)
38- implicit def keyword (chars : String ): Parser [String ] =
39- keywordCache.getOrElseUpdate(chars, accept(Keyword (chars)) ^^ (_.chars))
37+ implicit def keyword (chars : String ): Parser [String ] =
38+ keywordCache.getOrElseUpdate(chars, accept(Keyword (chars)) ^^ (_.chars))
4039
4140 /** A parser which matches a numeric literal */
4241 def numericLit : Parser [String ] =
@@ -50,5 +49,3 @@ trait StdTokenParsers extends TokenParsers {
5049 def ident : Parser [String ] =
5150 elem(" identifier" , _.isInstanceOf [Identifier ]) ^^ (_.chars)
5251}
53-
54-
You can’t perform that action at this time.
0 commit comments