Skip to content

Ott filtering with cache rejects parse #128

@dc-mak

Description

@dc-mak

MWE and repro steps below, OCaml version 5.2.0 (may be related to this: 2672914 )

14:24 ➜  cat tmp.ott
indexvar i ::=

grammar
  terminals :: '' ::=
    | /\   :: :: and {{ tex \wedge }}

  Phi :: 'Phi_' ::=
    | Phi1 /\ ... /\ Phii ::   :: conjunction
14:25 ➜  cat tmp.tex
[[ /\ ]]
14:25 ➜  ott tmp.ott -tex_filter tmp.tex out.tex && cat out.tex
Ott version 0.34   distribution of Mon Dec 30 10:12:45 GMT 2024
 \wedge
14:25 ➜  ott tmp.ott -writesys tmp.cache
Ott version 0.34   distribution of Mon Dec 30 10:12:45 GMT 2024
system definition in file: tmp.cache
14:25 ➜  ott -readsys tmp.cache -tex_filter tmp.tex out.tex
Ott version 0.34   distribution of Mon Dec 30 10:12:45 GMT 2024
Fatal error: exception New_term_parser.Reject_parse
14:30 ➜  ocaml --version
The OCaml toplevel, version 5.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions