Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generator: Handle <command> via vk-parse types and nom #719

Merged
merged 1 commit into from Mar 21, 2023

Commits on Mar 13, 2023

  1. generator: Handle <command> via vk-parse types and nom

    For the upcoming `api` attribute in `vk.xml` commands also need to be
    processed through `vk-parse` which has support for all the new
    attributes, while `vkxml` is deprecated and completely untouched for
    years.  This conversion unfortunately requires whipping up yet another
    quick-and-dirty `nom` parser of a specific subset of C used in `vk.xml`
    to describe parameter signatures.  This PR shows that conversion is
    complete and provides no accidental semantic differences.
    
    Also update `vk-parse` to `0.9` which contains a new `code` field on
    `CommandParam` (`<param>` element) to be able to inspect the code
    signature of individual parameters rather than parsing them out of (and
    matching them back to `vk-parse`'s `params` array!) the `<command>`
    / `CommandDefinition` as a whole:
    krolli/vk-parse#25 (comment)
    krolli/vk-parse@615ffb6
    MarijnS95 committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    85cae8c View commit details
    Browse the repository at this point in the history