This package is used to describe syntax for LL(1) languages.
This package is used to describe syntax for LL(1) languages.
To use the package, mix-in the scallion.Parsers trait.
object MyParser extends Parsers {
// Type of tokens.
type Token = MyToken
// Type of token kinds.
type Kind = MyKind
// Define the token kind of tokens.
override def getKind(token: Token): Kind = ...
// Then define your syntax using combinators.
lazy val mySyntax = ...
}