leo/tests/parser/expression/token_format.leo
Alessandro Coglio 2fbaf759db [parser] Remove mut and type keywords.
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.
2022-05-13 23:36:08 -07:00

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