Documentation
¶
Overview ¶
Package parser implements the parsing logic to obtain the sequence of inputs ready for processing. The two main thing it will do is to parse a regex-assembly file and recursively solve all `includes` first, then substitute all definitions where necessary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParsedLine ¶
type ParsedLine struct {
// contains filtered or unexported fields
}
ParsedLine will store the results of parsing the line. `parsedType` will discriminate how you read the results: if the type is `include`, then the result map will store the file name in the "include" key. The definition type will just use the map for the name:value.
type Parser ¶
type Parser struct {
Flags map[rune]bool
Prefixes []string
Suffixes []string
// contains filtered or unexported fields
}
Parser is the base parser type. It will provide processors with all the inclusions and definitions resolved.