Returns the result from parsing the specified input.
Returns the result from parsing the specified input.
This is a generic method based on Laika's IO abstraction layer that concrete methods delegate to. Usually not used directly in application code, but might come in handy for very special requirements.
the input for the parser
Returns the result from parsing the specified file.
Returns the result from parsing the specified file. Any kind of character input is valid, including empty files.
the file to use as input
the character encoding of the file, if not specified the platform default will be used.
Returns the result from parsing the file with the specified name.
Returns the result from parsing the file with the specified name. Any kind of character input is valid, including empty files.
the name of the file to parse
the character encoding of the file, if not specified the platform default will be used.
Returns the result from parsing the input from the specified reader.
Returns the result from parsing the input from the specified stream.
Returns the result from parsing the input from the specified stream.
the stream to use as input for the parser
the character encoding of the stream, if not specified the platform default will be used.
Returns the result from parsing a the specified string.
Returns the result from parsing a the specified string. Any kind of input is valid, including an empty string.
API for producing a result from processing various types of input.
This is essentially a collection of shortcuts that allow any class merging in this trait to define all input related operations in terms of the only abstract method
fromInput
. CallingfromFile("foo.md")
for example is only a convenient shortcut for callingfromInput(Input.fromFile("foo.md")
.