![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
Functions | |
| bool | test_match_include () |
| bool | test_match_pragma () |
| Optional[Path] | resolve_include (str file, Optional[Path] parent=None) |
| None | resolve_excluded_files (Optional[List[str]] file_list, Set[Path] resolved, Optional[Path] parent=None) |
| None | write_line (str line) |
| None | error_line (Any line) |
| None | add_file (Path file, str file_name=None) |
Variables | |
| Set | roots = set() |
| Set | excludes = set() |
| Set | keeps = set() |
| bool | keep_pragma = False |
| TextIO | destn = sys.stdout |
| Set | found = set() |
| Pattern | pragma_regex = re.compile(r'^\s*#\s*pragma\s*once\s*') |
| Pattern | include_regex = re.compile(r'^\s*#\s*include\s*"(.+?)"') |
| parser = argparse.ArgumentParser(description='Amalgamate Tool', epilog=f'example: {sys.argv[0]} -r ../my/path -r ../other/path -o out.c in.c') | |
| action | |
| type | |
| Path | |
| help | |
| default | |
| False | |
| args = parser.parse_args() | |
| input | |
| strict | |
| None add_file | ( | Path | file, |
| str | file_name = None ) |
| None error_line | ( | Any | line | ) |
| None resolve_excluded_files | ( | Optional[List[str]] | file_list, |
| Set[Path] | resolved, | ||
| Optional[Path] | parent = None ) |
| Optional[Path] resolve_include | ( | str | file, |
| Optional[Path] | parent = None ) |
| bool test_match_include | ( | ) |
| bool test_match_pragma | ( | ) |
| None write_line | ( | str | line | ) |
| action |
| args = parser.parse_args() |
| default |
| TextIO destn = sys.stdout |
| Set excludes = set() |
| False |
| Set found = set() |
| help | ( | void | ) |
| Pattern include_regex = re.compile(r'^\s*#\s*include\s*"(.+?)"') |
| input |
| Set keeps = set() |
| parser = argparse.ArgumentParser(description='Amalgamate Tool', epilog=f'example: {sys.argv[0]} -r ../my/path -r ../other/path -o out.c in.c') |
| Path |
| Pattern pragma_regex = re.compile(r'^\s*#\s*pragma\s*once\s*') |
| Set roots = set() |
| strict |
| type |