This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
18
unikernel/duniverse/angstrom/lib_test/test_let_syntax_ppx.ml
Normal file
18
unikernel/duniverse/angstrom/lib_test/test_let_syntax_ppx.ml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
open Angstrom
|
||||
open Let_syntax
|
||||
|
||||
let (_ : int t) =
|
||||
let%bind () = end_of_input in
|
||||
return 1
|
||||
|
||||
let (_ : int t) =
|
||||
let%map (_ : char) = any_char
|
||||
and (_ : string) = string "foo"
|
||||
in
|
||||
2
|
||||
|
||||
let (_ : int t) =
|
||||
let%mapn (_ : char) = any_char
|
||||
and (_ : string) = string "foo"
|
||||
in
|
||||
2
|
||||
Loading…
Add table
Add a link
Reference in a new issue