parsley.token.names.LexemeNames.scala Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2020 Parsley Contributors
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package parsley.token.names
import parsley.Parsley
import parsley.token.Lexeme
import parsley.token.predicate.CharPredicate
private [token] class LexemeNames(names: Names, lexeme: Lexeme) extends Names {
override lazy val identifier: Parsley[String] = lexeme(names.identifier)
override def identifier(startChar: CharPredicate): Parsley[String] = lexeme(names.identifier(startChar))
override lazy val userDefinedOperator: Parsley[String] = lexeme(names.userDefinedOperator)
override def userDefinedOperator(startChar: CharPredicate, endChar: CharPredicate): Parsley[String] = lexeme(names.userDefinedOperator(startChar, endChar))
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy