Packages

package lexer

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class AstToken(tokenType: Token, text: String, range: SourceLocation) extends Product with Serializable

    A Token that contains the associated text.

    A Token that contains the associated text. So it can be used to into the AST to serialize the input without keeping the original source

  2. abstract class BaseLexer[T <: Token] extends Lexer[T]
  3. class CharSequenceLexerInput extends LexerInput

    A LexerInput backed by a CharSequence

  4. case class InputRange(lineFrom: Int, columnFrom: Int, lineTo: Int, columnTo: Int) extends Product with Serializable

    A Range in the Input

  5. trait Lexer[T <: Token] extends AnyRef

    A lexer is a recognizer that draws input symbols from a character stream.

    A lexer is a recognizer that draws input symbols from a character stream. Specific lexer grammars are implementations of this interface this object.

  6. trait LexerInput extends AnyRef

    A source of characters for a Lexer.

  7. final class Position extends Ordered[Position]
  8. class Queue[T] extends AnyRef
  9. case class SourceLocation(sourceName: String, offsetFrom: Int, offsetTo: Int, lineFrom: Int, columnFrom: Int, lineTo: Int, columnTo: Int) extends Ordered[SourceLocation] with Product with Serializable

    A range of Input Locations (This should supersede the use of the InputRange class and the use of sourceName:String)

  10. abstract class Token extends AnyRef

    The Token Trait

  11. case class TokenData[T <: Token](token: T, range: SourceLocation) extends Product with Serializable

    The Token data

  12. final class failfast extends Annotation with StaticAnnotation

    An Annotation to specify that a given lexer function will fail (return false) without changing the lexer state (For the time being is just a hint, we can use it in the future to optimize the lexer)

Value Members

  1. object CharSequenceLexerInput
  2. object InputRange extends Serializable
  3. object LexerInput
  4. object Position
  5. object SourceLocation extends Serializable

Ungrouped