hamzaremmal/amy

View on GitHub
compiler/src/main/scala/amyc/utils/printers/phases/DisplayTokens.scala

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
package amyc.utils.printers.phases

import amyc.core.Context
import amyc.parsing.Token
import amyc.utils.Pipeline


/** Extracts all tokens from input and displays them */
object DisplayTokens extends Pipeline[Iterator[Token], Unit] {

  override val name = "DisplayTokens"

  override def run(tokens: Iterator[Token])(using Context): Unit =
    for token <- tokens do println(token)
}