Skip to content

Meaning of square brackets? #454

@rrthomas

Description

@rrthomas

The MicroC example seems to use square brackets as an alternative to (…)? (as is conventional), but I can't find it documented.

The documented syntax is used in the CallFunc production, while square brackets are used in various places, e.g. Comparison and Multiplication.

I checked that if I change one of the productions to use (…)? instead of […] then the test result is identical.

If this is indeed correct, I'd be happy to write a small patch for the README.

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