scalaparsers.Token.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parser_2.11 Show documentation
Show all versions of parser_2.11 Show documentation
A Trifecta inspired parser in Scala.
The newest version!
package scalaparsers
/** Tokens are returned by the layout parser rather than raw characters
*
* @author EAK
*/
sealed abstract class Token extends Product with Serializable
final case object VSemi extends Token {
override def toString = "virtual semicolon"
}
final case object VBrace extends Token {
override def toString = "virtual right brace"
}
final case object WhiteSpace extends Token {
override def toString = "white space"
}
final case object Other extends Token {
override def toString = "other"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy