All Downloads are FREE. Search and download functionalities are using the official Maven repository.

parsley.token.symbol.LexemeSymbol.scala Maven / Gradle / Ivy

There is a newer version: 5.0.0-M6
Show newest version
/* SPDX-FileCopyrightText: © 2022 Parsley Contributors 
 * SPDX-License-Identifier: BSD-3-Clause
 */
package parsley.token.symbol

import parsley.Parsley
import parsley.token.Lexeme
import parsley.token.errors.ErrorConfig

private [token] class LexemeSymbol(symbol: Symbol, lexeme: Lexeme, err: ErrorConfig) extends Symbol(err) {
    override def apply(name: String): Parsley[Unit] = lexeme(symbol.apply(name))
    override def apply(name: Char): Parsley[Unit] = lexeme(symbol.apply(name))
    override def softKeyword(name: String): Parsley[Unit] = lexeme(symbol.softKeyword(name))
    override def softOperator(name: String): Parsley[Unit] = lexeme(symbol.softOperator(name))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy