Skip to content

Commit

Permalink
Added new implicits object to improve debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Apr 28, 2024
1 parent b526deb commit 5e5cfb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ private [token] class LexemeSymbol(symbol: Symbol, lexeme: Lexeme) extends Symbo
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))

override val implicits: ImplicitSymbol = new ImplicitSymbol {
/** @inheritdoc */
implicit def implicitSymbol(s: String): Parsley[Unit] = lexeme(symbol.apply(s).uo(s""""$s""""))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ abstract class Symbol private[symbol] {
*
* @since 4.0.0
*/
final val implicits: ImplicitSymbol = new ImplicitSymbol {
val implicits: ImplicitSymbol = new ImplicitSymbol {
/** @inheritdoc */
implicit def implicitSymbol(s: String): Parsley[Unit] = apply(s).uo(s""""$s"""")
}
Expand Down

0 comments on commit 5e5cfb3

Please sign in to comment.