__init__(self) | formatron.formatter.FormatterBuilder | |
_add_capture_name(self, NonterminalExtractor extractor) | formatron.formatter.FormatterBuilder | protected |
_add_extractor(self, str extractor_type, typing.Callable[[str], Extractor] create_extractor) | formatron.formatter.FormatterBuilder | protected |
_assert_capture_name_valid(self, str capture_name) | formatron.formatter.FormatterBuilder | protected |
_capture_names | formatron.formatter.FormatterBuilder | protected |
_counter | formatron.formatter.FormatterBuilder | protected |
_create_nonterminal(self, str name) | formatron.formatter.FormatterBuilder | protected |
_extractors | formatron.formatter.FormatterBuilder | protected |
_formatter_builder_counter | formatron.formatter.FormatterBuilder | protectedstatic |
_instance_id | formatron.formatter.FormatterBuilder | protected |
_main_rule | formatron.formatter.FormatterBuilder | protected |
_nonterminal_to_extractor | formatron.formatter.FormatterBuilder | protected |
_rules | formatron.formatter.FormatterBuilder | protected |
append_line(self, str line) | formatron.formatter.FormatterBuilder | |
append_multiline_str(self, str lines) | formatron.formatter.FormatterBuilder | |
append_str(self, str string) | formatron.formatter.FormatterBuilder | |
build(self, kbnf.Vocabulary vocabulary, typing.Callable[[list[int]], str] decode, kbnf.Config engine_config=None) | formatron.formatter.FormatterBuilder | |
choose(self, *Extractor|str extractors, str capture_name=None) | formatron.formatter.FormatterBuilder | |
extractor(self, typing.Callable[[str], Extractor] create_extractor) | formatron.formatter.FormatterBuilder | |
json(self, typing.Type[Schema]|collections.abc.Sequence schema, *, str capture_name=None) | formatron.formatter.FormatterBuilder | |
regex(self, str regex, *, str capture_name=None) | formatron.formatter.FormatterBuilder | |
regex_complement(self, str regex, *, str capture_name=None) | formatron.formatter.FormatterBuilder | |
str(self, *, typing.Union[str, list[str]] stop=None, typing.Optional[str] capture_name=None) | formatron.formatter.FormatterBuilder | |
substr(self, str string, *, str capture_name=None, bool extract_empty_substring=False) | formatron.formatter.FormatterBuilder | |