Uses of Class
net.hydromatic.morel.ast.Pos
Packages that use Pos
Package
Description
Standard ML interpreter, implemented in Java.
Abstract syntax tree.
Validates programs
(represented as
AstNode),
deduces their type,
and compiles them into code that can be evaluated.Evaluates expressions.
Utilities.
-
Uses of Pos in net.hydromatic.morel
Methods in net.hydromatic.morel with parameters of type Pos -
Uses of Pos in net.hydromatic.morel.ast
Fields in net.hydromatic.morel.ast declared as PosMethods in net.hydromatic.morel.ast that return PosModifier and TypeMethodDescriptionstatic PosCreates a Pos from two offsets.static <E> Posstatic PosCombines an iterable of parser positions to create a position which spans from the beginning of the first to the end of the last.private static PosComputes the parser position which is the sum of an array of parser positions and of a parser position represented by (line, column, endLine, endColumn).static Posprivate static PosCombines a list of parser positions to create a position which spans from the beginning of the first to the end of the last.Methods in net.hydromatic.morel.ast that return types with arguments of type PosModifier and TypeMethodDescriptionCreates a Pos from a filename and a string with a delimiter character.Methods in net.hydromatic.morel.ast with parameters of type PosModifier and TypeMethodDescriptionvoidCore.BindingConsumer.accept(Core.NamedPat namedPat, Core.Exp exp, Pos pos) AstBuilder.annotatedExp(Pos pos, Ast.Exp expression, Ast.Type type) AstBuilder.annotatedPat(Pos pos, Ast.Pat pat, Ast.Type type) Creates aCore.Apply.CoreBuilder.apply(Pos pos, TypeSystem typeSystem, BuiltIn builtIn, Core.Exp arg0, Core.Exp arg1, Core.Exp... args) Creates aCore.Applywith two or more arguments, packing the arguments into a tuple.AstBuilder.boolLiteral(Pos p, boolean b) Creates abooleanliteral.private Core.ApplyCalls a built-in function with one type parameter.AstBuilder.charLiteral(Pos p, char c) Creates acharliteral.AstBuilder.compositeType(Pos pos, Iterable<Ast.Type> types) AstBuilder.compute(Pos pos, List<Ast.Aggregate> aggregates) AstBuilder.datatypeBind(Pos pos, Ast.Id name, Iterable<Ast.TyVar> tyVars, Iterable<Ast.TyCon> tyCons) AstBuilder.datatypeDecl(Pos pos, Iterable<Ast.DatatypeBind> binds) CoreBuilder.fn(Pos pos, FnType type, List<Core.Match> matchList, NameGenerator nameGenerator) AstBuilder.from(Pos pos, List<Ast.FromStep> steps) AstBuilder.from(Pos pos, List<Ast.FromStep> steps, Ast.Exp implicitYieldExp) AstBuilder.funBind(Pos pos, Iterable<? extends Ast.FunMatch> matchList) AstBuilder.functionType(Pos pos, Ast.Type fromType, Ast.Type toType) AstBuilder.funDecl(Pos pos, Iterable<? extends Ast.FunBind> valBinds) AstBuilder.funMatch(Pos pos, String name, Iterable<? extends Ast.Pat> patList, Ast.Type returnType, Ast.Exp exp) AstBuilder.ifThenElse(Pos pos, Ast.Exp condition, Ast.Exp ifTrue, Ast.Exp ifFalse) (package private) static @Nullable Ast.ExpAst.From.implicitYieldExp(Pos pos, List<Ast.FromStep> steps) AstBuilder.intLiteral(Pos pos, BigDecimal value) Creates anintliteral.AstBuilder.literalPat(Pos pos, Op op, Comparable value) CoreBuilder.nonRecValDecl(Pos pos, Core.NamedPat pat, Core.Exp exp) CoreBuilder.only(TypeSystem typeSystem, Pos pos, Core.Exp a0) AstBuilder.order(Pos pos, Iterable<Ast.OrderItem> orderItems) AstBuilder.orderItem(Pos pos, Ast.Exp exp, Ast.Direction direction) AstBuilder.prefixCall(Pos p, Op op, Ast.Exp a) Creates a call to a prefix operator.AstBuilder.realLiteral(Pos pos, Float value) Creates afloatliteral for a special IEEE floating point value: NaN, negative zero, positive and negative infinity.AstBuilder.realLiteral(Pos pos, BigDecimal value) Creates afloatliteral.AstBuilder.recordSelector(Pos pos, String name) AstBuilder.recordType(Pos pos, Map<String, Ast.Type> fieldTypes) private Ast.ExpReturns a reference to a built-in: either a name (e.g.AstBuilder.stringLiteral(Pos pos, String value) Creates a string literal.AstBuilder.typeConstructor(Pos pos, Ast.Id id, Ast.Type type) AstBuilder.unitLiteral(Pos p) Creates a unit literal.AstBuilder.valDecl(Pos pos, boolean rec, Iterable<? extends Ast.ValBind> valBinds) AstBuilder.valDecl(Pos pos, boolean rec, Ast.ValBind... valBinds) AstBuilder.wildcardPat(Pos pos) Method parameters in net.hydromatic.morel.ast with type arguments of type PosModifier and TypeMethodDescriptionstatic <E> Posstatic PosCombines an iterable of parser positions to create a position which spans from the beginning of the first to the end of the last.private static PosComputes the parser position which is the sum of an array of parser positions and of a parser position represented by (line, column, endLine, endColumn).private static PosCombines a list of parser positions to create a position which spans from the beginning of the first to the end of the last.Constructors in net.hydromatic.morel.ast with parameters of type PosModifierConstructorDescription(package private)(package private)AnnotatedExp(Pos pos, Ast.Exp exp, Ast.Type type) Creates a type annotation.(package private)AnnotatedPat(Pos pos, Ast.Pat pat, Ast.Type type) (package private)(package private)(package private)(package private)(package private)(package private)Case(Pos pos, Type type, Core.Exp exp, com.google.common.collect.ImmutableList<Core.Match> matchList) (package private)CompositeType(Pos pos, com.google.common.collect.ImmutableList<Ast.Type> types) (package private)Compute(Pos pos, com.google.common.collect.ImmutableList<Ast.Aggregate> aggregates) (package private)(package private)(package private)DatatypeBind(Pos pos, com.google.common.collect.ImmutableList<Ast.TyVar> tyVars, Ast.Id name, com.google.common.collect.ImmutableList<Ast.TyCon> tyCons) (package private)DatatypeDecl(Pos pos, com.google.common.collect.ImmutableList<Ast.DatatypeBind> binds) (package private)(package private)(package private)(package private)(package private)(package private)From(Pos pos, com.google.common.collect.ImmutableList<Ast.FromStep> steps, @Nullable Ast.Exp implicitYieldExp) (package private)(package private)FunBind(Pos pos, com.google.common.collect.ImmutableList<Ast.FunMatch> matchList) (package private)FunctionType(Pos pos, Ast.Type paramType, Ast.Type resultType) (package private)FunDecl(Pos pos, com.google.common.collect.ImmutableList<Ast.FunBind> funBinds) (package private)FunMatch(Pos pos, String name, com.google.common.collect.ImmutableList<Ast.Pat> patList, @Nullable Ast.Type returnType, Ast.Exp exp) (package private)Group(Pos pos, Op op, ImmutablePairList<Ast.Id, Ast.Exp> groupExps, com.google.common.collect.ImmutableList<Ast.Aggregate> aggregates) (package private)Creates an Id.(package private)(package private)(package private)(package private)(package private)(package private)(package private)Literal(Pos pos, Op op, Comparable value) Creates a Literal.(package private)LiteralPat(Pos pos, Op op, Comparable value) (package private)(package private)(package private)Creates a type.(package private)NonRecValDecl(Core.NamedPat pat, Core.Exp exp, Pos pos) (package private)Order(Pos pos, com.google.common.collect.ImmutableList<Ast.OrderItem> orderItems) (package private)OrderItem(Pos pos, Ast.Exp exp, Ast.Direction direction) (package private)(package private)PrefixCall(Pos pos, Op op, Ast.Exp a) (package private)(package private)RecordPat(Pos pos, boolean ellipsis, com.google.common.collect.ImmutableSortedMap<String, Ast.Pat> args) (package private)RecordSelector(Pos pos, String name) Creates a record selector.(package private)RecordType(Pos pos, com.google.common.collect.ImmutableMap<String, Ast.Type> fieldTypes) Creates a record type.(package private)(package private)(package private)(package private)(package private)(package private)(package private)(package private)Creates a type node.(package private)Creates a TyVar.(package private)protectedValDecl(Pos pos, boolean rec, com.google.common.collect.ImmutableList<Ast.ValBind> valBinds) (package private)(package private)(package private)WildcardPat(Pos pos) (package private) -
Uses of Pos in net.hydromatic.morel.compile
Fields in net.hydromatic.morel.compile declared as PosModifier and TypeFieldDescriptionprivate final PosCompileException.posprivate final PosCompiler.MatchCode.pos(package private) final PosResolver.PatExp.posMethods in net.hydromatic.morel.compile that return PosMethods in net.hydromatic.morel.compile with parameters of type PosModifier and TypeMethodDescriptionprivate ApplicableCompiler.compileApplicable(Compiler.Context cx, Core.Exp fn, Type argType, Pos pos) Compiles a function value to anApplicable, if possible, or returns null.private CodeCompiler.compileCall(Compiler.Context cx, BuiltIn builtIn, Core.Exp arg, Pos pos) private @Nullable ApplicableCompiler.toApplicable(Compiler.Context cx, Object o, Type argType, Pos pos) Constructors in net.hydromatic.morel.compile with parameters of type PosModifierConstructorDescriptionCompileException(String message, boolean warning, Pos pos) (package private)MatchCode(ImmutablePairList<Core.Pat, Code> patCodes, Pos pos) (package private)TypeException(String message, Pos pos) -
Uses of Pos in net.hydromatic.morel.eval
Fields in net.hydromatic.morel.eval declared as PosModifier and TypeFieldDescription(package private) final PosApplicableImpl.posprivate final PosClosure.posprivate final PosCodes.MorelRuntimeException.posMethods in net.hydromatic.morel.eval that return PosMethods in net.hydromatic.morel.eval with parameters of type PosModifier and TypeMethodDescriptionprivate static StringCodes.stringConcat(Pos pos, String separator, List<String> list) voidvoidvoidConstructors in net.hydromatic.morel.eval with parameters of type PosModifierConstructorDescriptionprotectedApplicable2(BuiltIn builtIn, Pos pos) protectedApplicable3(BuiltIn builtIn, Pos pos) protectedApplicableImpl(String name, Pos pos) protectedApplicableImpl(BuiltIn builtIn, Pos pos) Creates an ApplicableImpl that directly implements a BuiltIn.Not a public API.(package private)InteractUse(Pos pos) (package private)(package private)(package private)(package private)ListTabulate(BuiltIn builtIn, Pos pos) (package private)(package private)MorelRuntimeException(Codes.BuiltInExn e, Pos pos) Creates a MorelRuntimeException.(package private)OptionValOf(Pos pos) (package private)RealCheckFloat(Pos pos) (package private)RealCompare(Pos pos) (package private)(package private)RelationalOnly(Pos pos) (package private)StringConcat(Pos pos) (package private)StringConcatWith(Pos pos) (package private)StringExtract(Pos pos) (package private)(package private)StringSubstring(Pos pos) (package private)VectorUpdate(Pos pos) -
Uses of Pos in net.hydromatic.morel.util
Methods in net.hydromatic.morel.util that return Pos