Package com.io7m.jlexing.core
Class LexicalPositions
java.lang.Object
com.io7m.jlexing.core.LexicalPositions
Convenience functions over lexical positions.
- Since:
- 1.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <F> LexicalPosition<F>zero()Construct a lexical position at line 0, column 0, with no file.static <F> LexicalPosition<F>zeroWithFile(F file) Construct a lexical position at line 0, column 0, with the given file.
-
Method Details
-
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
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
-