LispFileParser

Parse the contents of file into lazy range over top-level expressions (SExpr).

Constructors

this
this(FilePath file)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Alias This

parser

Members

Functions

offsetTo
ptrdiff_t offsetTo(char[] expr)
Undocumented in source.

Variables

parser
LispParser parser;
Undocumented in source.

Examples

Optional integration test if path exists.

const path = FilePath(`~/Work/knet/knowledge/xlg.el`);
if (path.exists) {
	auto parser = LispFileParser(path);
	assert(!parser.empty);
}

See Also

Meta