Files
rlp/rlp/RLPC.java
crumbtoo d2d6829d4b core AST
2023-11-07 15:00:21 -07:00

23 lines
621 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package rlp.rlpc;
/*----------------------------------------------------------------------------*/
import rlp.Core;
/*----------------------------------------------------------------------------*/
class RLPC
{
public static void main(String[] argv)
{
// final Core.Expr e = new Core.App(new Core.Var(new Core.Name("f")), new Core.Var(new Core.Name("x")));
final Core.Expr e =
new Core.App
( new Core.Abs
( new Core.Name("x")
, new Core.TyVar(new Core.Name("α"))
, new Core.Var(new Core.Name("x"))
)
, new Core.Var(new Core.Name("y")));
System.out.println(Core.showExpr(e));
}
}