Skip to content

[Feature] Optionally create .pxd files #69

@0dminnimda

Description

@0dminnimda

If the creation of a parser using c was prohibited, because the original cpython pegen used too much internal functionality, then we can at least make python parser faster with cython.

Since pegen knows all the variables and types that users provide, it can use this information to create a .pxd file. This file will not interfere with pure python parser work, but it can be used by cython to create a faster compiled version of the parser.

I will implement this functionality anyway, but I wonder should I make it into PR and try to merge it here? Is this feature needed here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions