incise.parsers.core

input-file-seq

(input-file-seq)

Returns a sequence of files (exclusing directories) from the input directory.

parse

(parse handle)

Returns a thunk which when invoked will return a list of files written from the invoked parser. The thunk will have some source-file meta. It may also return nil if a parser for the given file is not found or the parser returns nil instead of a dealy or thunk.

parse-all

(parse-all files)

Parse all of the given files completely by calling parse on each one and invoking the parse result.

parse-all-input-files

(parse-all-input-files)

Completely parse all of the files from the input directory.

parsers

An atom containing a mapping of extensions (strings) to parse functions. A parse function takes a java.io.File and returns either a thunk or delay, which when invoked returns a sequence of files. This two step invocation is necessary to achieve features like tags.

register

(register extensions parser)

Register a parser for the given file extensions.

register-mappings!

(register-mappings! mappings)

Takes a map of custom parser mappings and applies them to the parsers map.