# Packages
Package terminal contains basic terminal parsers for text parsing.
# Functions
LeftTrim skips the whitespaces before it tries to match the given parser.
NewFile creates a new file object.
NewPosition creates a new text position.
NewReader creates a new reader instance The Windows-style line endings (\r\n) are automatically replaced with Unix-style line endings (\n).
ReadFile reads a file and creates a File object.
RightTrim reads and skips the whitespaces after any parser matches and updates the reader position.
Trim removes all whitespaces before and after the result token.
# Constants
Whitespace modes WsNone means no whitespaces will read and skipped after a token WsSpaces means spaces and tabs will be read and skipped automatically after a match WsSpacesNl means spaces, tabs and new lines will be read and skipped automatically after a match.
Whitespace modes WsNone means no whitespaces will read and skipped after a token WsSpaces means spaces and tabs will be read and skipped automatically after a match WsSpacesNl means spaces, tabs and new lines will be read and skipped automatically after a match.
Whitespace modes WsNone means no whitespaces will read and skipped after a token WsSpaces means spaces and tabs will be read and skipped automatically after a match WsSpacesNl means spaces, tabs and new lines will be read and skipped automatically after a match.
Whitespace modes WsNone means no whitespaces will read and skipped after a token WsSpaces means spaces and tabs will be read and skipped automatically after a match WsSpacesNl means spaces, tabs and new lines will be read and skipped automatically after a match.
# Type aliases
WsMode is a type for definining how to handle whitespaces after the tokens.