Mentions légales du service

Skip to content
  • Frédéric Bour's avatar
    Create a MenhirInterpreter.terminal when using --only-tokens and --inspection · f9182069
    Frédéric Bour authored
    When using `--external-tokens M`, Menhir assumes that the terminal GADT is
    `M.MenhirInterpreter.terminal`.
    
    However, the module generated using `--only-tokens` exposed `terminal` at the
    top-level.  This lead to a different interface for M depending on whether it
    was generated using `--only-tokens` (`M.terminal`) or as a normal parser
    (`M.MenhirInterpreter.terminal`).
    
    This patch fixes that case: `terminal` can be referred to uniformly using
    `M.MenhirInterpreter.terminal`.
    f9182069