disallow keywords as identifiers
[hiphop-php.git] / hphp / hack / src / parser / full_fidelity_parser_context.mli
blob80cf36351dcfda75cc8f0967ce0ce0ff0d862202
1 (**
2 * Copyright (c) 2017, Facebook, Inc.
3 * All rights reserved.
5 * This source code is licensed under the MIT license found in the
6 * LICENSE file in the "hack" directory of this source tree.
8 *)
10 module WithToken : functor (Token : Lexable_token_sig.LexableToken_S) -> sig
11 type t [@@deriving show]
12 val empty : t
13 val expects : t -> Full_fidelity_token_kind.t -> bool
14 val expects_here : t -> Full_fidelity_token_kind.t -> bool
15 val expect : t -> Full_fidelity_token_kind.t list -> t
16 val expect_in_new_scope : t -> Full_fidelity_token_kind.t list -> t
17 val pop_scope : t -> Full_fidelity_token_kind.t list -> t
19 val skipped_tokens : t -> Token.t list
20 val with_skipped_tokens : t -> Token.t list -> t
22 val print_expected : t -> unit
23 end