package
0.17.0
Repository: https://github.com/conflowio/parsley.git
Documentation: pkg.go.dev

# 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.

# Structs

File contains the contents of a file and the line offsets for quick line+column lookup.
Position is a text file position.
Reader defines a text input reader For more efficient reading it provides methods for regexp matching.

# Type aliases

WsMode is a type for definining how to handle whitespaces after the tokens.