Skip to content

Config file preprocessing #26

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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