aboutsummaryrefslogtreecommitdiff
path: root/parsing
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-12-06 04:44:27 +0100
committerEmilio Jesus Gallego Arias2018-12-09 02:54:02 +0100
commitd00472c59d15259b486868c5ccdb50b6e602a548 (patch)
tree008d862e4308ac8ed94cfbcd94ac26c739b89642 /parsing
parentfa20a54d9fbe0f3872614a592fcef7ef56b05e49 (diff)
[doc] Enable Warning 50 [incorrect doc comment] and fix comments.
This is a pre-requisite to use automated formatting tools such as `ocamlformat`, also, there were quite a few places where the comments had basically no effect, thus it was confusing for the developer. p.s: Reading some comments was a lot of fun :)
Diffstat (limited to 'parsing')
-rw-r--r--parsing/extend.ml6
-rw-r--r--parsing/tok.mli1
2 files changed, 4 insertions, 3 deletions
diff --git a/parsing/extend.ml b/parsing/extend.ml
index 050ed49622..9b5537d7f6 100644
--- a/parsing/extend.ml
+++ b/parsing/extend.ml
@@ -106,11 +106,11 @@ type 'a production_rule =
type 'a single_extend_statement =
string option *
- (** Level *)
+ (* Level *)
Gramlib.Gramext.g_assoc option *
- (** Associativity *)
+ (* Associativity *)
'a production_rule list
- (** Symbol list with the interpretation function *)
+ (* Symbol list with the interpretation function *)
type 'a extend_statement =
Gramlib.Gramext.position option *
diff --git a/parsing/tok.mli b/parsing/tok.mli
index 9b8c008555..55fcd33272 100644
--- a/parsing/tok.mli
+++ b/parsing/tok.mli
@@ -27,6 +27,7 @@ val to_string : t -> string
(* Needed to fit Camlp5 signature *)
val print : Format.formatter -> t -> unit
val match_keyword : string -> t -> bool
+
(** for camlp5 *)
val of_pattern : string*string -> t
val to_pattern : t -> string*string