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