Skip to content

Commit

Permalink
Use Hemlock doc attributes rather than OCaml doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Evans committed Aug 1, 2024
1 parent ec91c69 commit 79c012d
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 36 deletions.
16 changes: 8 additions & 8 deletions bootstrap/bin/hocc/spec.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1959,10 +1959,10 @@ let hmi_template = {|{
Spec = {
Algorithm = {
type t: t =
| Lr1 (** LR(1) algorithm. *)
| Ielr1 (** IELR(1) algorithm. *)
| Pgm1 (** PGM(1) algorithm. *)
| Lalr1 (** LALR(1) algorithm. *)
| Lr1 [@doc "LR(1) algorithm."]
| Ielr1 [@doc "IELR(1) algorithm."]
| Pgm1 [@doc "PGM(1) algorithm."]
| Lalr1 [@doc "LALR(1) algorithm."]

pp >e: t -> Fmt.Formatter e >e-> Fmt.Formatter e
}
Expand Down Expand Up @@ -2445,10 +2445,10 @@ let hm_template = {|{
Spec = {
Algorithm = {
type t: t =
| Lr1 (** LR(1) algorithm. *)
| Ielr1 (** IELR(1) algorithm. *)
| Pgm1 (** PGM(1) algorithm. *)
| Lalr1 (** LALR(1) algorithm. *)
| Lr1
| Ielr1
| Pgm1
| Lalr1

to_string = function
| Lr1 -> "Lr1"
Expand Down
8 changes: 4 additions & 4 deletions bootstrap/test/hocc/Example.expected.hm
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ include [:]{
Spec = {
Algorithm = {
type t: t =
| Lr1 (** LR(1) algorithm. *)
| Ielr1 (** IELR(1) algorithm. *)
| Pgm1 (** PGM(1) algorithm. *)
| Lalr1 (** LALR(1) algorithm. *)
| Lr1
| Ielr1
| Pgm1
| Lalr1

to_string = function
| Lr1 -> "Lr1"
Expand Down
8 changes: 4 additions & 4 deletions bootstrap/test/hocc/Example.expected.hmi
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ include [:]{
Spec = {
Algorithm = {
type t: t =
| Lr1 (** LR(1) algorithm. *)
| Ielr1 (** IELR(1) algorithm. *)
| Pgm1 (** PGM(1) algorithm. *)
| Lalr1 (** LALR(1) algorithm. *)
| Lr1 [@doc "LR(1) algorithm."]
| Ielr1 [@doc "IELR(1) algorithm."]
| Pgm1 [@doc "PGM(1) algorithm."]
| Lalr1 [@doc "LALR(1) algorithm."]

pp >e: t -> Fmt.Formatter e >e-> Fmt.Formatter e
}
Expand Down
8 changes: 4 additions & 4 deletions bootstrap/test/hocc/Example_b.expected.hm
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ include
Spec = {
Algorithm = {
type t: t =
| Lr1 (** LR(1) algorithm. *)
| Ielr1 (** IELR(1) algorithm. *)
| Pgm1 (** PGM(1) algorithm. *)
| Lalr1 (** LALR(1) algorithm. *)
| Lr1
| Ielr1
| Pgm1
| Lalr1

to_string = function
| Lr1 -> "Lr1"
Expand Down
8 changes: 4 additions & 4 deletions bootstrap/test/hocc/Example_b.expected.hmi
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ include
Spec = {
Algorithm = {
type t: t =
| Lr1 (** LR(1) algorithm. *)
| Ielr1 (** IELR(1) algorithm. *)
| Pgm1 (** PGM(1) algorithm. *)
| Lalr1 (** LALR(1) algorithm. *)
| Lr1 [@doc "LR(1) algorithm."]
| Ielr1 [@doc "IELR(1) algorithm."]
| Pgm1 [@doc "PGM(1) algorithm."]
| Lalr1 [@doc "LALR(1) algorithm."]

pp >e: t -> Fmt.Formatter e >e-> Fmt.Formatter e
}
Expand Down
8 changes: 4 additions & 4 deletions bootstrap/test/hocc/Example_c.expected.hm
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Parser = {
Spec = {
Algorithm = {
type t: t =
| Lr1 (** LR(1) algorithm. *)
| Ielr1 (** IELR(1) algorithm. *)
| Pgm1 (** PGM(1) algorithm. *)
| Lalr1 (** LALR(1) algorithm. *)
| Lr1
| Ielr1
| Pgm1
| Lalr1

to_string = function
| Lr1 -> "Lr1"
Expand Down
8 changes: 4 additions & 4 deletions bootstrap/test/hocc/Example_c.expected.hmi
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Parser = {
Spec = {
Algorithm = {
type t: t =
| Lr1 (** LR(1) algorithm. *)
| Ielr1 (** IELR(1) algorithm. *)
| Pgm1 (** PGM(1) algorithm. *)
| Lalr1 (** LALR(1) algorithm. *)
| Lr1 [@doc "LR(1) algorithm."]
| Ielr1 [@doc "IELR(1) algorithm."]
| Pgm1 [@doc "PGM(1) algorithm."]
| Lalr1 [@doc "LALR(1) algorithm."]

pp >e: t -> Fmt.Formatter e >e-> Fmt.Formatter e
}
Expand Down
8 changes: 4 additions & 4 deletions doc/tools/hocc.md
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,10 @@ parser states can be used as persistent reusable snapshots.
Spec = {
Algorithm = {
type t: t =
| Lr1 (** LR(1) algorithm. *)
| Ielr1 (** IELR(1) algorithm. *)
| Pgm1 (** PGM(1) algorithm. *)
| Lalr1 (** LALR(1) algorithm. *)
| Lr1 [@doc "LR(1) algorithm."]
| Ielr1 [@doc "IELR(1) algorithm."]
| Pgm1 [@doc "PGM(1) algorithm."]
| Lalr1 [@doc "LALR(1) algorithm."]
pp >e: t -> Fmt.Formatter e >e-> Fmt.Formatter e
}
Expand Down

0 comments on commit 79c012d

Please sign in to comment.