Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/glr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ module type IN =
sig
include Parse_table.S
val debug : bool
exception Reject_parse
exception Reject_all_parses
end;;

module Make (Pt : IN) : S with
Expand Down Expand Up @@ -538,7 +536,7 @@ struct
(rn.rule_nt.reduce_action rl,
idx::injection_children,
NTset.add rn.rule_nt.reduce_left loop)::res
with Reject_parse ->
with Types.Reject_parse ->
res)
(process_t_or_s_nodes idx rn.outgoing rn.rule_nt.reduce_transparent)
[]
Expand Down Expand Up @@ -602,7 +600,7 @@ struct
try
sn.started <- true;
List.flatten (List.map process_rule_node sn.possibilities)
with Reject_all_parses ->
with Types.Reject_all_parses ->
[]
in
sn.finished <- true;
Expand Down
4 changes: 2 additions & 2 deletions src/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ let read_systemdefn read_systemdefn_filename =
let fd = open_in_bin read_systemdefn_filename in
let sd,lookup ,sd_unquotiented, sd_quotiented_unaux =
try (Marshal.from_channel fd :
(Types.systemdefn * (string -> bool -> string -> Types.symterm list) * Types.systemdefn * Types.systemdefn))
(Types.systemdefn * Types.made_parser * Types.systemdefn * Types.systemdefn))
with Failure s -> Auxl.error None ("Cannot read dumped systemdefn\n " ^ s ^"\n")
in
close_in fd;
Expand All @@ -712,7 +712,7 @@ let output_stage (sd,lookup,sd_unquotiented,sd_quotiented_unaux) =
let fd = open_out_bin s in
Marshal.to_channel fd (
(sd,lookup,sd_unquotiented,sd_quotiented_unaux) :
(Types.systemdefn * (string -> bool -> string -> Types.symterm list) * Types.systemdefn * Types.systemdefn))
(Types.systemdefn * Types.made_parser * Types.systemdefn * Types.systemdefn))
[Marshal.Closures];
close_out fd;
print_string ("system definition in file: " ^ s ^ "\n") );
Expand Down
3 changes: 0 additions & 3 deletions src/new_term_parser.ml
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ module Nt = Nonterminal;;
module GramTypes = Parse_table.MakeTypes (Gtp);;
open GramTypes;;

exception Reject_parse
exception Reject_all_parses

let rec split l n =
if n = 0 then
([], l)
Expand Down
2 changes: 0 additions & 2 deletions src/term_parser.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1191,8 +1191,6 @@ let make_parser xd : made_parser =
let module Pt2 =
struct
include Pt
exception Reject_parse = New_term_parser.Reject_parse;;
exception Reject_all_parses = New_term_parser.Reject_all_parses;;
let debug = false
end
in
Expand Down
4 changes: 4 additions & 0 deletions src/types.ml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ exception LemTODO;;

exception DE1 of string;;

exception Reject_parse;;

exception Reject_all_parses;;

open Location;;

(** ************************ *)
Expand Down