Uses of Class
net.hydromatic.morel.ast.Ast.Decl
-
Packages that use Ast.Decl Package Description net.hydromatic.morel.ast Abstract syntax tree.net.hydromatic.morel.compile Validates programs (represented asAstNode), deduces their type, and compiles them into code that can be evaluated. -
-
Uses of Ast.Decl in net.hydromatic.morel.ast
Subclasses of Ast.Decl in net.hydromatic.morel.ast Modifier and Type Class Description static classAst.DatatypeDeclParse tree node of a datatype declaration.static classAst.FunDeclParse tree node of a function declaration.static classAst.ValDeclParse tree node of a value declaration.Fields in net.hydromatic.morel.ast with type parameters of type Ast.Decl Modifier and Type Field Description java.util.List<Ast.Decl>Ast.LetExp. declsMethods in net.hydromatic.morel.ast that return Ast.Decl Modifier and Type Method Description abstract Ast.DeclAst.Decl. accept(Shuttle shuttle)Ast.DeclAst.FunDecl. accept(Shuttle shuttle)protected Ast.DeclShuttle. visit(Ast.FunDecl funDecl)Method parameters in net.hydromatic.morel.ast with type arguments of type Ast.Decl Modifier and Type Method Description Ast.LetExpAst.LetExp. copy(java.lang.Iterable<Ast.Decl> decls, Ast.Exp e)Creates a copy of thisLetExpwith given contents, or this if the contents are the same.Ast.LetExpAstBuilder. let(Pos pos, java.lang.Iterable<? extends Ast.Decl> decls, Ast.Exp e)Constructor parameters in net.hydromatic.morel.ast with type arguments of type Ast.Decl Constructor Description LetExp(Pos pos, com.google.common.collect.ImmutableList<Ast.Decl> decls, Ast.Exp e) -
Uses of Ast.Decl in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as Ast.Decl Modifier and Type Field Description Ast.DeclTypeResolver.Resolved. nodeAst.DeclTypeResolver.Resolved. originalNodeMethods in net.hydromatic.morel.compile that return Ast.Decl Modifier and Type Method Description private Ast.DeclTypeResolver. deduceDeclType(TypeResolver.TypeEnv env, Ast.Decl node, java.util.Map<Ast.IdPat,Unifier.Term> termMap)private Ast.DeclTypeResolver. deduceValDeclType(TypeResolver.TypeEnv env, Ast.ValDecl valDecl, java.util.Map<Ast.IdPat,Unifier.Term> termMap)Methods in net.hydromatic.morel.compile with parameters of type Ast.Decl Modifier and Type Method Description private voidCompiler. compileDecl(Environment env, Ast.Decl decl, java.util.List<Code> varCodes, java.util.List<Binding> bindings, java.util.List<Compiler.Action> actions)private CodeCompiler. compileLet(Environment env, Ast.Decl decl, Ast.Exp e)(package private) CompiledStatementCompiler. compileStatement(Environment env, Ast.Decl decl)private Ast.DeclTypeResolver. deduceDeclType(TypeResolver.TypeEnv env, Ast.Decl node, java.util.Map<Ast.IdPat,Unifier.Term> termMap)static TypeResolver.ResolvedTypeResolver. deduceType(Environment env, Ast.Decl decl, TypeSystem typeSystem)Deduces the type of a declaration.private TypeResolver.ResolvedTypeResolver. deduceType_(Environment env, Ast.Decl decl)(package private) static TypeResolver.ResolvedTypeResolver.Resolved. of(Ast.Decl originalNode, Ast.Decl node, TypeResolver.TypeMap typeMap)private static CompiledStatementCompiles. prepareDecl(TypeSystem typeSystem, Environment env, Ast.Decl decl)Validates and compiles an declaration, and compiles it to code that can be evaluated by the interpreter.Method parameters in net.hydromatic.morel.compile with type arguments of type Ast.Decl Modifier and Type Method Description private CodeCompiler. compileLet(Environment env, java.util.List<Ast.Decl> decls, Ast.Exp e)private Ast.LetExpCompiler. flattenLet(java.util.List<Ast.Decl> decls, Ast.Exp e)Constructors in net.hydromatic.morel.compile with parameters of type Ast.Decl Constructor Description Resolved(Ast.Decl originalNode, Ast.Decl node, TypeResolver.TypeMap typeMap)
-