summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-09-08 18:06:55 +0200
committerSébastien Dailly <sebastien@chimrod.com>2021-09-08 18:06:55 +0200
commit1ba97f613c25926f4007fda9e38131fbb8961173 (patch)
tree501051e35c6c44a48b8d8a93e12267ab5d3eb8d0 /src/bin
parentd04dec688cc9159d4e3ad47890ae4b1f40c5ec3c (diff)
Update tengwar
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/transcriptor.ml19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/bin/transcriptor.ml b/src/bin/transcriptor.ml
index f86852f..77a7b6f 100644
--- a/src/bin/transcriptor.ml
+++ b/src/bin/transcriptor.ml
@@ -5,12 +5,21 @@ let process (optional_line : string option) =
| None -> ()
| Some line ->
- let res = Result.map
+ let result =(T.Reader.process line) in
+
+ let res1 = Result.map
(fun t-> Sounds.repr (module Repr.Default) t)
- (T.Reader.process line) in
- match res with
- | Ok response -> print_endline response
- | Error err -> print_endline err
+ result in
+ let () = match res1 with
+ | Ok response -> print_endline response
+ | Error err -> print_endline err in
+ let res2 = Result.map
+ (fun t-> Sounds.repr (module Repr.Tengwar) t)
+ result in
+ let () = match res2 with
+ | Ok response -> print_endline response
+ | Error err -> print_endline err in
+ ()
let rec repeat channel =
(* Attempt to read one line. *)