Alternate if syntax support
[hiphop-php.git] / hphp / hack / src / parser / full_fidelity_parser_context.mli
blob5126913656d85525b3be5afcf08c94fed4885029
1 (**
2 * Copyright (c) 2017, Facebook, Inc.
3 * All rights reserved.
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the "hack" directory of this source tree. An additional grant
7 * of patent rights can be found in the PATENTS file in the same directory.
9 *)
11 module WithToken : functor (Token : Lexable_token_sig.LexableToken_S) -> sig
12 type t
13 val empty : t
14 val expects : t -> Full_fidelity_token_kind.t -> bool
15 val expects_here : t -> Full_fidelity_token_kind.t -> bool
16 val expect : t -> Full_fidelity_token_kind.t list -> t
17 val expect_in_new_scope : t -> Full_fidelity_token_kind.t list -> t
18 val pop_scope : t -> Full_fidelity_token_kind.t list -> t
20 val skipped_tokens : t -> Token.t list
21 val with_skipped_tokens : t -> Token.t list -> t
23 val print_expected : t -> unit
24 end