inlining.mli 1.19 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
(******************************************************************************)
(*                                                                            *)
(*                                   Menhir                                   *)
(*                                                                            *)
(*                       François Pottier, Inria Paris                        *)
(*              Yann Régis-Gianas, PPS, Université Paris Diderot              *)
(*                                                                            *)
(*  Copyright Inria. All rights reserved. This file is distributed under the  *)
(*  terms of the GNU General Public License version 2, as described in the    *)
(*  file LICENSE.                                                             *)
(*                                                                            *)
(******************************************************************************)

14
open BasicSyntax
15

POTTIER Francois's avatar
POTTIER Francois committed
16 17 18
(** [inline g] traverses the grammar [g] and inlines away the nonterminal
    symbols whose definitions are marked [%inline]. The result is a grammar
    where no symbols are marked [%inline]. *)
19
val inline: grammar -> grammar