disallow '.' as mapsTo token (only ↦ now)

Intention is to reuse the '.' token as namespace delimiter
and '::' to be used as return type prefix instead
This commit is contained in:
Michael Sippel 2024-05-15 21:42:44 +02:00
parent 312e97193a
commit b336f2f847
Signed by: senvas
GPG key ID: F96CF119C34B64A6
3 changed files with 26 additions and 27 deletions

View file

@ -309,7 +309,7 @@ where
tokens.next();
let mut variable_bindings = parse_binding_expr(typectx, tokens)?;
let _ = parse_expect(tokens, LTIRToken::LambdaBody);
let _ = parse_expect(tokens, LTIRToken::MapsTo);
let body = parse_expr(typectx, tokens)?;
return Ok(LTExpr::Abstraction {