Replace pfff with flitter
This commit is contained in:
parent
cccf36eb4f
commit
c8efc2a088
27 changed files with 295 additions and 293 deletions
|
|
@ -2,8 +2,8 @@ ast_cpp.cmo : ../../h_program-lang/scope_code.cmi \
|
|||
../../h_program-lang/parse_info.cmi ../../commons/common.cmi
|
||||
ast_cpp.cmx : ../../h_program-lang/scope_code.cmx \
|
||||
../../h_program-lang/parse_info.cmx ../../commons/common.cmx
|
||||
flag_parsing_cpp.cmo : ../../globals/config_pfff.cmo
|
||||
flag_parsing_cpp.cmx : ../../globals/config_pfff.cmx
|
||||
flag_parsing_cpp.cmo : ../../globals/config_flitter.cmo
|
||||
flag_parsing_cpp.cmx : ../../globals/config_flitter.cmx
|
||||
lexer_cpp.cmo : parser_cpp.cmi ../../h_program-lang/parse_info.cmi \
|
||||
flag_parsing_cpp.cmo ../../commons/common2.cmi ../../commons/common.cmi \
|
||||
ast_cpp.cmo
|
||||
|
|
@ -182,11 +182,11 @@ type_cpp.cmo : ast_cpp.cmo type_cpp.cmi
|
|||
type_cpp.cmx : ast_cpp.cmx type_cpp.cmi
|
||||
type_cpp.cmi : ast_cpp.cmo
|
||||
unit_parsing_cpp.cmo : parse_cpp.cmi ../../commons/oUnit.cmi \
|
||||
flag_parsing_cpp.cmo ../../globals/config_pfff.cmo \
|
||||
flag_parsing_cpp.cmo ../../globals/config_flitter.cmo \
|
||||
../../commons/common2.cmi ../../commons/common.cmi ast_cpp.cmo \
|
||||
unit_parsing_cpp.cmi
|
||||
unit_parsing_cpp.cmx : parse_cpp.cmx ../../commons/oUnit.cmx \
|
||||
flag_parsing_cpp.cmx ../../globals/config_pfff.cmx \
|
||||
flag_parsing_cpp.cmx ../../globals/config_flitter.cmx \
|
||||
../../commons/common2.cmx ../../commons/common.cmx ast_cpp.cmx \
|
||||
unit_parsing_cpp.cmi
|
||||
unit_parsing_cpp.cmi : ../../commons/oUnit.cmi
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ token_views_context.cmo: token_views_context.ml
|
|||
##############################################################################
|
||||
# install
|
||||
##############################################################################
|
||||
LIBNAME=pfff-lang_cpp
|
||||
LIBNAME=flitter-lang_cpp
|
||||
EXPORTSRC=meta_ast_cpp.mli \
|
||||
parser_cpp.mli parse_cpp.mli \
|
||||
lib_parsing_cpp.mli visitor_cpp.mli \
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
* and because templates are also qualifiers, almost all types
|
||||
* are now mutually recursive ...
|
||||
*
|
||||
* Like most other ASTs in pfff, it's actually more a Concrete Syntax Tree.
|
||||
* Like most other ASTs in flitter, it's actually more a Concrete Syntax Tree.
|
||||
* Some stuff are tagged 'semantic:' which means that they are computed
|
||||
* after parsing.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ type language =
|
|||
(*****************************************************************************)
|
||||
|
||||
let macros_h =
|
||||
ref (Filename.concat Config_pfff.path "/data/cpp_stdlib/macros.h")
|
||||
ref (Filename.concat Config_flitter.path "/data/cpp_stdlib/macros.h")
|
||||
|
||||
let cmdline_flags_macrofile () = [
|
||||
"-macros", Arg.Set_string macros_h,
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ let (_defs : (string, Pp_token.define_body) Hashtbl.t) =
|
|||
*)
|
||||
let add_defs file =
|
||||
if not (Sys.file_exists file)
|
||||
then failwith (spf "Could not find %s, have you set PFFF_HOME correctly?"
|
||||
then failwith (spf "Could not find %s, have you set FLITTER_HOME correctly?"
|
||||
file);
|
||||
pr2 (spf "Using %s macro file" file);
|
||||
let xs = extract_macros file in
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ let unittest =
|
|||
(* Parsing *)
|
||||
(*-----------------------------------------------------------------------*)
|
||||
"regression files" >:: (fun () ->
|
||||
let dir = Filename.concat Config_pfff.path "/tests/cpp/parsing" in
|
||||
let dir = Filename.concat Config_flitter.path "/tests/cpp/parsing" in
|
||||
let files =
|
||||
Common2.glob (spf "%s/*.cpp" dir) @ Common2.glob (spf "%s/*.h" dir) in
|
||||
files +> List.iter (fun file ->
|
||||
|
|
@ -46,7 +46,7 @@ let unittest =
|
|||
);
|
||||
|
||||
"rejecting bad code" >:: (fun () ->
|
||||
let dir = Filename.concat Config_pfff.path "/tests/cpp/parsing_errors" in
|
||||
let dir = Filename.concat Config_flitter.path "/tests/cpp/parsing_errors" in
|
||||
let files = Common2.glob (spf "%s/*.cpp" dir) in
|
||||
files +> List.iter (fun file ->
|
||||
try
|
||||
|
|
@ -61,7 +61,7 @@ let unittest =
|
|||
|
||||
(* parsing C files (and not C++ files) possibly containing C++ keywords *)
|
||||
"C regression files" >:: (fun () ->
|
||||
let dir = Filename.concat Config_pfff.path "/tests/c/parsing" in
|
||||
let dir = Filename.concat Config_flitter.path "/tests/c/parsing" in
|
||||
let files =
|
||||
Common2.glob (spf "%s/*.c" dir)
|
||||
(* @ Common2.glob (spf "%s/*.h" dir) *) in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue