Skip to content

Commit

Permalink
introspector
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Jan 12, 2024
1 parent 0b7449c commit 2334c43
Show file tree
Hide file tree
Showing 10 changed files with 3,618 additions and 1,201 deletions.
4 changes: 3 additions & 1 deletion bin/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(executable
(public_name gbnf_parser)
(name main)
(libraries gbnf_parser))
(libraries gbnf_parser)
(preprocess (pps ppx-introspector) )
)

6 changes: 4 additions & 2 deletions dune
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
(env
(_
(flags
(:standard -warn-error -9-27-26 -dtypedtree -dparsetree -dlambda -annot -dsource -dump-into-file -drawlambda -dprofile))))
(:standard -warn-error -9-27-26 -dtypedtree -dparsetree -dlambda -annot -dsource -dump-into-file -drawlambda ))))



(library
(name grammar))
(name grammar)
(preprocess (pps ppx-introspector) )
)

1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(lang dune 3.5)

(name gbnf_parser)
(version 0b7449c-dirty)
(using menhir 2.0)
(generate_opam_files true)

Expand Down
1 change: 1 addition & 0 deletions gbnf_parser.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0b7449c-dirty"
synopsis: "A short synopsis"
description: "A longer description"
authors: ["James Michael DuPont"]
Expand Down
4 changes: 2 additions & 2 deletions lib/ast.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open Sexplib.Std
(* open Sexplib.Std *)

type sexp =
| Atom of string
| List of sexp list
[@@deriving sexp]
(* [@@deriving sexp] *)
7 changes: 2 additions & 5 deletions lib/dune
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
(library
(name gbnf_parser)

(libraries menhirLib)

(libraries menhirLib batteries ocaml_ocaml_types )
(preprocess (pps ppx-introspector) )
)



19 changes: 5 additions & 14 deletions lib/sentenceParser_describe.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@
unsafe_string = false;
cookies = [("inline_tests", "enabled"); ("library-name", "gbnf_parser")]
}]
let () =
Ppx_module_timer_runtime.record_start Ppx_module_timer_runtime.__MODULE__
let () =
Ppx_bench_lib.Benchmark_accumulator.Current_libname.set "gbnf_parser"
let () =
Expect_test_collector.Current_file.set
~absolute_filename:"lib/sentenceParser.ml"
let () =
Ppx_inline_test_lib.set_lib_and_partition "gbnf_parser" "sentenceParser.ml"

module MenhirBasics =
struct
Expand Down Expand Up @@ -1443,8 +1434,8 @@ module Incremental =
(Obj.magic (MenhirInterpreter.start 0 initial_position) : Syntax.partial_grammar
MenhirInterpreter.checkpoint)
end
let () = Ppx_inline_test_lib.unset_lib "gbnf_parser"
let () = Expect_test_collector.Current_file.unset ()
let () = Ppx_bench_lib.Benchmark_accumulator.Current_libname.unset ()
let () =
Ppx_module_timer_runtime.record_until Ppx_module_timer_runtime.__MODULE__
(* let () = Ppx_inline_test_lib.unset_lib "gbnf_parser" *)
(* let () = Expect_test_collector.Current_file.unset () *)
(* let () = Ppx_bench_lib.Benchmark_accumulator.Current_libname.unset () *)
(* let () = *)
(* Ppx_module_timer_runtime.record_until Ppx_module_timer_runtime.__MODULE__ *)
Loading

0 comments on commit 2334c43

Please sign in to comment.