8000 Clarification Request on EBNF Syntax in C99 Grammar File · Issue #69 · katef/kgt · GitHub
[go: up one dir, main page]

Skip to content

Clarification Request on EBNF Syntax in C99 Grammar File #69

Open

Description

@rpjax

I am currently using the C99 EBNF grammar file from the "examples/c99-grammar.iso-ebnf" directory for testing my parser generator algorithm and applying some grammar transformations. During this process, I came across a notation that I'm unfamiliar with.
Ex:

struct-or-union-specifier
    <missing '='> 
    | enum-specifier
    | typedef-name;

Could you please explain what <missing '='> represents?

Activity

  1. katef commented on Apr 8, 2025

    @katef
    Owner

    Hello! I'm confused, I don't actually see that in the file you mentioned. There's:

    struct-or-union-specifier = struct-or-union, '{', struct-declaration-list, '}'
                              | struct-or-union, identifier, ['{', struct-declaration-list, '}'];
    

    Is the <missing '='> output from something perhaps?

    Grepping all of kgt's source, I don't find the word "missing" in this repository at all 🤔

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

      0