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
56
56
*/
57
57
58
58
trait PackratParsers extends Parsers {
59
-
60
- // type Input = PackratReader[Elem]
61
-
62
59
/**
63
60
* A specialized `Reader` class that wraps an underlying `Reader`
64
61
* and provides memoization of parse results.
Original file line number Diff line number Diff line change @@ -34,9 +34,8 @@ trait StdTokenParsers extends TokenParsers {
34
34
* @param chars The character string making up the matched keyword.
35
35
* @return a `Parser` that matches the given string
36
36
*/
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))
40
39
41
40
/** A parser which matches a numeric literal */
42
41
def numericLit : Parser [String ] =
@@ -50,5 +49,3 @@ trait StdTokenParsers extends TokenParsers {
50
49
def ident : Parser [String ] =
51
50
elem(" identifier" , _.isInstanceOf [Identifier ]) ^^ (_.chars)
52
51
}
53
-
54
-
You can’t perform that action at this time.
0 commit comments