keywordExpansion.mli 1.21 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 16 17 18 19 20 21

(* [expand_grammar] expands away the keywords [$startpos] and [$endpos], as well
   the entire [ofs] family of keywords. Doing this early simplifies some aspects
   later on, in particular %inlining. *)

val expand_grammar: grammar -> grammar