Skip to content
This repository
tree: 64c4e18598
Fetching contributors…

Cannot retrieve contributors at this time

file 62 lines (48 sloc) 1.512 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62

\t verbose, debug, info

<<flag_parsing_php.ml>>=
let verbose_lexing = ref true
let verbose_parsing = ref true
@

<<flag_parsing_php.ml>>=
let cmdline_flags_verbose () = [
  "-no_verbose_lexing", Arg.Clear verbose_lexing , " ";
  "-no_verbose_parsing", Arg.Clear verbose_parsing , " ";
]
@

<<flag_parsing_php.ml>>=
let debug_lexer = ref false
@

<<flag_parsing_php.ml>>=
let cmdline_flags_debugging () = [
  "-debug_lexer", Arg.Set debug_lexer , " ";
]
@

<<flag_parsing_php.ml>>=
let show_parsing_error = ref true
(* Do not raise an exn when a parse error but use NotParsedCorrectly.
 * Now that the PHP parser is quite complete, it's better to set
 * error_recovery to false by default and raise a true ParseError exn.
 *)
let error_recovery = ref false
@


<<flag_parsing_php.ml>>=
let short_open_tag = ref true
@

% pp related stuff in parse_php.mli.nw
<<flag_parsing_php.ml>>=

(* e.g. yield *)
let facebook_lang_extensions = ref true

let type_hints_extension = ref false

(* in facebook context, we want xhp support by default *)
let xhp_builtin = ref true

let verbose_pp = ref false
(* Alternative way to get xhp by calling xhpize as a preprocessor.
 * Slower than builtin_xhp and have some issues where the comments
 * are removed, unless you use the experimental_merge_tokens_xhp
 * but which has some issues itself.
 *)
let pp_default = ref (None: string option)
let xhp_command = "xhpize"
let obsolete_merge_tokens_xhp = ref false

<<flag_parsing_php.ml pp related flags>>
@
Something went wrong with that request. Please try again.