Skip to content

179 tracked .flow files do not parse with the Python reference parser #997

Closed

Description

@godofecht

179 tracked .flow files do not parse with the Python reference parser (flow.parser.parse_flow_code). They are listed in compiler/parse_coverage/python_rejects.txt, which compiler/scripts/parse_coverage.sh uses to leave them out of the flowc coverage count.

By area: examples/verify 156, examples/gpu 6, examples/evolution 6, examples/dynamics 3, tests/fuzz 2, lib/verify 2, docs/vision 2, tests/runtime 1, scripts/tools 1.

The most common errors:

  • Unexpected token in expression: PLUS (33), for example examples/verify/math/derived/List-append-assoc.flow
  • Expected RPAREN (22)
  • Unexpected declaration: IDENTIFIER (13)
  • Unexpected character (about 35), for example the set-difference backslash in card(s \ empty) in examples/verify/math/derived/Finset-card-diff-empty.flow

Some are presumably intentional negative fixtures (tests/fuzz). The examples/verify ones look like proof syntax the parser does not yet have, or files that need a preprocessing step before parsing. Each file should either be fixed, moved under a fixtures directory for invalid input, or have its grammar added to both parsers. When a file here starts parsing, regenerate the list with the command in the header of parse_coverage.sh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions