scallion

==Overview==

Scallion is a library for easily writing LL(1) parsers in Scala, with support for pretty printing. See the package scallion for more information.

Attributes

Members list

Packages

package scallion

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 = ...
}

Attributes