Skip to content

Question with peg_generator grammar #131103

@HJX-001

Description

@HJX-001

as per metagrammar.gram item can be optional

item[Item]:
    | '[' ~ alts ']' {Opt(alts)}

by this it can be concluded that alt can be optional and so on. As understood by me is that it is possible to write a rule like rulename: with no alts. pls clerify.

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