mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 03:33:44 +03:00
2fbaf759db
As discussed, these are no longer in the grammar. If and when we need them, we will re-add them. This also removes some extra code that gives a specific error when mut is used. However, that is in fact another bug, because `mut` is a valid identifier in the current grammar, and thus this extra code unjustly rejects code that uses `mut` as an identifier. Adjust some tests and expectations.
145 lines
486 B
Plaintext
145 lines
486 B
Plaintext
/*
|
|
namespace: ParseExpression
|
|
expectation: Fail
|
|
*/
|
|
|
|
"test" ~
|
|
|
|
u32 ~
|
|
|
|
1 ~
|
|
|
|
true ~
|
|
|
|
false ~
|
|
|
|
aleo13jgjyzhzhvrqecjct7scsjrfsfn09j9vryung8mfykt5502p75rsx7l9lr ~
|
|
|
|
'h' ~
|
|
|
|
@test
|
|
|
|
!1 ~
|
|
|
|
&&
|
|
|
|
||
|
|
|
|
==
|
|
|
|
!=
|
|
|
|
<
|
|
|
|
<=
|
|
|
|
>
|
|
|
|
>=
|
|
|
|
+
|
|
|
|
-
|
|
|
|
*
|
|
|
|
**
|
|
|
|
/
|
|
|
|
=
|
|
|
|
+=
|
|
|
|
-=
|
|
|
|
*=
|
|
|
|
/=
|
|
|
|
**=
|
|
|
|
(
|
|
|
|
)
|
|
|
|
[
|
|
|
|
]
|
|
|
|
{
|
|
|
|
}
|
|
|
|
,
|
|
|
|
.
|
|
|
|
..
|
|
|
|
...
|
|
|
|
;
|
|
|
|
:
|
|
|
|
h::
|
|
|
|
?
|
|
|
|
->
|
|
|
|
_
|
|
|
|
u8 ~
|
|
|
|
u16 ~
|
|
|
|
u32 ~
|
|
|
|
u64 ~
|
|
|
|
u128 ~
|
|
|
|
i8 ~
|
|
|
|
i16 ~
|
|
|
|
i32 ~
|
|
|
|
i64 ~
|
|
|
|
i128 ~
|
|
|
|
field ~
|
|
|
|
group ~
|
|
|
|
bool ~
|
|
|
|
address ~
|
|
|
|
char ~
|
|
|
|
input ~
|
|
|
|
console
|
|
|
|
const
|
|
|
|
else
|
|
|
|
for
|
|
|
|
function
|
|
|
|
if
|
|
|
|
in
|
|
|
|
let
|
|
|
|
&
|
|
|
|
return
|