splitter

Simple source code splitter Written by Vladimir Panteleev <vladimir@thecybershadow.net>

Members

Aliases

EntityHash
alias EntityHash = PolynomialHash!(ModQ!(ulong, largest64bitPrime))
Undocumented in source.
EntityHash
alias EntityHash = PolynomialHash!ulong
Undocumented in source.
optimize
alias optimize = optimizeUntil!((Entity e) => false)
Undocumented in source.
parseToLines
alias parseToLines = parseSplit!isNewline
Undocumented in source.
parseToWords
alias parseToWords = parseSplit!isNotAlphaNum
Undocumented in source.

Classes

Entity
class Entity

Represents a slice of the original code.

Enums

Mode
enum Mode
Undocumented in source.
Splitter
enum Splitter
Undocumented in source.

Functions

loadFiles
Entity loadFiles(string path, ParseOptions options)

Parse the given file/directory. For files, modifies path to be the base name for .test / .reduced directories.

optimizeUntil
void optimizeUntil(Entity set)
Undocumented in source. Be warned that the author may not have intended to support it.
parseDiff
Entity[] parseDiff(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
parseIndent
Entity[] parseIndent(string s, uint tabWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
parseSplit
Entity[] parseSplit(string text)

Split the text into sequences for each fun is always true, and then always false

Manifest constants

BIN_SIZE
enum BIN_SIZE;
Undocumented in source.
largest64bitPrime
enum largest64bitPrime;
Undocumented in source.

Structs

Address
struct Address

Represents an Entity's position within a program tree.

EntityRef
struct EntityRef
Undocumented in source.
ParseOptions
struct ParseOptions
Undocumented in source.
ParseRule
struct ParseRule
Undocumented in source.

Variables

splitterNames
string[] splitterNames;
Undocumented in source.

Meta

License

Boost Software License, Version 1.0