Class LexicalPositions

java.lang.Object
com.io7m.jlexing.core.LexicalPositions

public final class LexicalPositions extends Object
Convenience functions over lexical positions.
Since:
1.1.0
  • Method Details

    • zero

      public static <F> LexicalPosition<F> zero()
      Construct a lexical position at line 0, column 0, with no file.
      Type Parameters:
      F - The type of file names
      Returns:
      A lexical position
    • zeroWithFile

      public static <F> LexicalPosition<F> zeroWithFile(F file)
      Construct a lexical position at line 0, column 0, with the given file.
      Type Parameters:
      F - The type of file names
      Parameters:
      file - The type name
      Returns:
      A lexical position