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

Unable to parse unions in WebGL IDLs #21

Open
kvark opened this issue May 8, 2020 · 0 comments
Open

Unable to parse unions in WebGL IDLs #21

kvark opened this issue May 8, 2020 · 0 comments

Comments

@kvark
Copy link

kvark commented May 8, 2020

Trying to update khronos API specs in gl-rs, I faced these fragment that webidl wasn't able to parse:

[NoInterfaceObject]
interface WEBGL_multi_draw_instanced_base_vertex_base_instance {
  void multiDrawArraysInstancedBaseInstanceWEBGL(
      GLenum mode,
      Int32array or sequence<GLint> firstsList, GLuint firstsOffset,
      Int32array or sequence<GLint> countsList, GLuint countsOffset,
      Int32array or sequence<GLint> instanceCountsList, GLuint instanceCountsOffset,
      Int32array or sequence<GLint> baseInstancesList, GLuint baseInstancesOffset,
      GLsizei drawCount
  );
  void multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(
      GLenum mode,
      Int32array or sequence<GLint> countsList, GLuint countsOffset,
      GLenum type,
      Int32array or sequence<GLint> offsetsList, GLuint offsetsOffset,
      Int32array or sequence<GLint> instanceCountsList, GLuint instanceCountsOffset,
      Int32array or sequence<GLint> baseVerticesList, GLuint baseVerticesOffset,
      Int32array or sequence<GLint> baseInstancesList, GLuint baseInstancesOffset,
      GLsizei drawCount
  );
};

Error: UnrecognizedToken { token: (172, Or, 174), expected: [""("", "","", ""..."", "">"", ""Identifier"", ""attribute"", ""callback"", ""const"", ""deleter"", ""dictionary"", ""enum"", ""getter"", ""implements"", ""includes"", ""inherit"", ""interface"", ""iterable"", ""legacycaller"", ""maplike"", ""namespace"", ""partial"", ""required"", ""setlike"", ""setter"", ""static"", ""stringifier"", ""typedef"", ""unrestricted""] }', webgl_generator/utils.rs:82:23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant