Skip to content

Config file preprocessing #26

@ernestask

Description

@ernestask

This might be out of scope for the project, but is there (or maybe there could be) a way to extend parsing with new features? For example, a new directive à la @include or variable expansion in strings.

Right now I’m resorting to monkey-patching TokenStream.from_file(), where I can mangle file contents however I want before chaining back up with an iterable, but that relies on internal behavior too much.

I would be willing to implement something minimally-invasive to suit my needs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions