Improve ReasonLIGO pretty printing output.
This commit is contained in:
parent
c30ade3b85
commit
fbc854f4d1
@ -278,8 +278,7 @@ let_binding:
|
|||||||
}
|
}
|
||||||
| par(closed_irrefutable) type_annotation? "=" expr {
|
| par(closed_irrefutable) type_annotation? "=" expr {
|
||||||
wild_error $4;
|
wild_error $4;
|
||||||
Scoping.check_pattern $1.value.inside;
|
{binders = $1.value.inside, []; lhs_type=$2; eq=$3; let_rhs=$4}
|
||||||
{binders = PPar $1, []; lhs_type=$2; eq=$3; let_rhs=$4}
|
|
||||||
}
|
}
|
||||||
| tuple(sub_irrefutable) type_annotation? "=" expr {
|
| tuple(sub_irrefutable) type_annotation? "=" expr {
|
||||||
wild_error $4;
|
wild_error $4;
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
let (((x: int), (y: int))) = (1, 2);
|
let ((x: int), (y: int)) = (1, 2);
|
||||||
|
|
||||||
let main = ((p: unit)): int => x + y;
|
let main = ((p: unit)): int => x + y;
|
||||||
|
|
||||||
let (((x: int), (y: int))) = (3, 3);
|
let ((x: int), (y: int)) = (3, 3);
|
||||||
|
|
||||||
let main_paren = ((p: unit)): int => x + y;
|
let main_paren = ((p: unit)): int => x + y;
|
||||||
|
|
||||||
let foobar: (int, int) = (23, 42);
|
let foobar: (int, int) = (23, 42);
|
||||||
|
|
||||||
let (((foo: int), (bar: int))) = foobar;
|
let ((foo: int), (bar: int)) = foobar;
|
||||||
|
|
||||||
let non_tuple_rhs = ((p: unit)): int => foo + bar;
|
let non_tuple_rhs = ((p: unit)): int => foo + bar;
|
||||||
|
@ -51,7 +51,7 @@ let check_message =
|
|||||||
:
|
:
|
||||||
(nat, authorized_keys) =>
|
(nat, authorized_keys) =>
|
||||||
{
|
{
|
||||||
let ((valid, keys)) = vk;
|
let (valid, keys) = vk;
|
||||||
switch(keys) {
|
switch(keys) {
|
||||||
| [] => vk
|
| [] => vk
|
||||||
| [key, ...keys] =>
|
| [key, ...keys] =>
|
||||||
@ -75,7 +75,7 @@ let check_message =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let ((valid, keys)) =
|
let (valid, keys) =
|
||||||
List.fold(aux, param.signatures, (valid, keys));
|
List.fold(aux, param.signatures, (valid, keys));
|
||||||
if(valid
|
if(valid
|
||||||
< s.threshold) {
|
< s.threshold) {
|
||||||
|
Loading…
Reference in New Issue
Block a user